react-native-navigation的迁移库

test-js.js 375B

12345678910111213141516171819
  1. const exec = require('shell-utils').exec;
  2. const _ = require('lodash');
  3. const dirs = [
  4. 'lib/src',
  5. 'integration',
  6. 'e2e',
  7. 'scripts',
  8. 'playground/src'
  9. ];
  10. run();
  11. function run() {
  12. const paths = _.chain(dirs).map((d) => `${d}/**/**/**/**/**/**/*`).join(' ').value();
  13. exec.execSync(`BABEL_ENV=test xo ${paths}`);
  14. exec.execSync(`BABEL_ENV=test jest --coverage`);
  15. }