1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | 1× 1× 1× 1× 1× 1× 1× 1× 1× | import chai from 'chai' import sinonChai from 'sinon-chai' chai.use(sinonChai) global.chai = chai global.assert = chai.assert global.expect = chai.expect global.should = chai.should() const testsContext = require.context('./', true, /\.spec\.js$/) testsContext.keys().forEach(testsContext) const srcContext = require.context('../src/', true, /\.js$/) srcContext.keys().forEach(srcContext) |