react-native-navigation的迁移库

1234567891011121314151617181920212223242526272829303132333435
  1. process.env.BABEL_ENV = 'test';
  2. const babelOptions = require('./package.json').babel.env.test;
  3. module.exports = function (wallaby) {
  4. return {
  5. env: {
  6. type: 'node',
  7. runner: 'node'
  8. },
  9. testFramework: 'jest',
  10. files: [
  11. 'package.json',
  12. 'lib/src/**/*.js',
  13. '!lib/src/**/*.test.js',
  14. 'integration/**/*.js',
  15. '!integration/**/*.test.js'
  16. ],
  17. tests: [
  18. 'lib/src/**/*.test.js',
  19. 'integration/**/*.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. };