index.js 563 B

123456789101112
  1. require('babel-regenerator-runtime'); // add regenerator support for async await
  2. require('packages/theme-chalk/lib/index.css');
  3. // require all test files (files that ends with .spec.js)
  4. const testsContext = require.context('./specs', true, /\.spec$/);
  5. testsContext.keys().forEach(testsContext);
  6. // require all src files except main.js for coverage.
  7. // you can also change this to match only the subset of files that
  8. // you want coverage for.
  9. const srcContext = require.context('../../src', true, /^\.\/(?!main(\.js)?$)/);
  10. srcContext.keys().forEach(srcContext);