react-native-navigation的迁移库

wallaby.js 588B

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