react-native-navigation的迁移库

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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/**/*.tsx',
  14. '!lib/src/**/*.test.tsx',
  15. '!lib/src/**/*.test.js',
  16. '!lib/src/**/*.test.ts',
  17. 'integration/**/*.js',
  18. '!integration/**/*.test.js'
  19. ],
  20. tests: [
  21. 'lib/src/**/*.test.js',
  22. 'lib/src/**/*.test.ts',
  23. 'lib/src/**/*.test.tsx',
  24. 'integration/**/*.test.js'
  25. ],
  26. compilers: {
  27. '**/*.js': wallaby.compilers.babel(babelOptions),
  28. '**/*.ts?(x)': wallaby.compilers.typeScript({
  29. module: 'commonjs',
  30. jsx: 'React'
  31. })
  32. },
  33. setup: (w) => {
  34. w.testFramework.configure(require('./package.json').jest);
  35. }
  36. };
  37. };