react-native-navigation的迁移库

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