mirror of
https://github.com/strapi/strapi.git
synced 2025-07-18 14:32:56 +00:00
14 lines
508 B
JavaScript
14 lines
508 B
JavaScript
// needed for regenerator-runtime
|
|
// (ES7 generator support is required by redux-saga)
|
|
import 'babel-polyfill';
|
|
|
|
// If we need to use Chai, we'll have already chaiEnzyme loaded
|
|
import chai from 'chai';
|
|
import chaiEnzyme from 'chai-enzyme';
|
|
chai.use(chaiEnzyme());
|
|
|
|
// Include all .js files under `app`, except app.js, reducers.js, and routes.js.
|
|
// This is for isparta code coverage
|
|
const context = require.context('../../app', true, /^^((?!(app|reducers|routes)).)*\.js$/);
|
|
context.keys().forEach(context);
|