react-native-navigation的迁移库

wallaby.js 684B

1234567891011121314151617181920212223242526272829303132333435
  1. /*eslint-disable*/
  2. 'use strict';
  3. const babelOptions = JSON.parse(require('fs').readFileSync(`${__dirname}/.babelrc`));
  4. module.exports = function(wallaby) {
  5. return {
  6. env: {
  7. type: 'node',
  8. runner: 'node'
  9. },
  10. testFramework: 'jest',
  11. files: [
  12. 'package.json',
  13. 'node_modules/react/**/*.js',
  14. 'node_modules/*jest*/**/*.js',
  15. 'src2/**/*.js',
  16. '!src2/**/*.test.js'
  17. ],
  18. tests: [
  19. 'src2/**/*.test.js'
  20. ],
  21. compilers: {
  22. '**/*.js': wallaby.compilers.babel(babelOptions)
  23. },
  24. setup: function(w) {
  25. require('babel-polyfill');
  26. w.testFramework.configure(require('./package.json').jest);
  27. }
  28. };
  29. };