react-native-navigation的迁移库

12345678910111213141516171819202122232425262728293031323334353637
  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/**/*.ts',
  13. '!lib/src/**/*.test.js',
  14. '!lib/src/**/*.test.ts',
  15. 'integration/**/*.js',
  16. '!integration/**/*.test.js'
  17. ],
  18. tests: [
  19. 'lib/src/**/*.test.js',
  20. 'lib/src/**/*.test.ts',
  21. 'integration/**/*.test.js'
  22. ],
  23. compilers: {
  24. '**/*.js': wallaby.compilers.babel(babelOptions)
  25. },
  26. setup: (w) => {
  27. w.testFramework.configure(require('./package.json').jest);
  28. }
  29. };
  30. };