react-native-navigation的迁移库

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