index.js 610 B

1234567891011121314
  1. // Polyfill fn.bind() for PhantomJS
  2. /* eslint-disable no-extend-native */
  3. Function.prototype.bind = require('function-bind');
  4. require('packages/theme-default/src/index.css');
  5. // require all test files (files that ends with .spec.js)
  6. const testsContext = require.context('./specs', true, /\.spec$/);
  7. testsContext.keys().forEach(testsContext);
  8. // require all src files except main.js for coverage.
  9. // you can also change this to match only the subset of files that
  10. // you want coverage for.
  11. const srcContext = require.context('../../src', true, /^\.\/(?!main(\.js)?$)/);
  12. srcContext.keys().forEach(srcContext);