react-native-navigation的迁移库

wallaby.js 787B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*eslint-disable*/
  2. 'use strict';
  3. process.env.BABEL_ENV = 'test';
  4. const babelOptions = require('./package.json').babel.env.test;
  5. module.exports = function (wallaby) {
  6. return {
  7. env: {
  8. type: 'node',
  9. runner: 'node'
  10. },
  11. // workers: {
  12. // initial: 1,
  13. // regular: 1
  14. // },
  15. testFramework: 'jest',
  16. files: [
  17. 'package.json',
  18. 'src/**/*.js',
  19. '!src/**/*.test.js',
  20. 'integration/**/*.js',
  21. '!integration/**/*.test.js'
  22. ],
  23. tests: [
  24. 'src/**/*.test.js',
  25. 'integration/**/*.test.js'
  26. ],
  27. compilers: {
  28. '**/*.js': wallaby.compilers.babel(babelOptions)
  29. },
  30. setup: function (w) {
  31. require('babel-polyfill');
  32. w.testFramework.configure(require('./package.json').jest);
  33. }
  34. };
  35. };