react-native-navigation的迁移库

12345678910111213141516171819202122232425262728293031323334
  1. const babelOptions = require('./package.json').babel.env.test;
  2. module.exports = function (wallaby) {
  3. return {
  4. env: {
  5. type: 'node',
  6. runner: 'node'
  7. },
  8. testFramework: 'jest',
  9. files: [
  10. 'package.json',
  11. 'lib/src/**/*.js',
  12. '!lib/src/**/*.test.js',
  13. 'integration/**/*.js',
  14. '!integration/**/*.test.js'
  15. ],
  16. tests: [
  17. 'lib/src/**/*.test.js',
  18. 'integration/**/*.test.js'
  19. ],
  20. compilers: {
  21. '**/*.js': wallaby.compilers.babel(babelOptions)
  22. },
  23. setup: (w) => {
  24. w.testFramework.configure(require('./package.json').jest);
  25. }
  26. };
  27. };