import 'core-js'; import * as sinon from 'sinon'; import * as chai from 'chai'; import * as chaiEnzyme from 'chai-enzyme'; import { configure } from 'enzyme'; import * as Adapter from 'enzyme-adapter-react-16'; configure({ adapter: new Adapter() }); chai.use(chaiEnzyme()); (global as any).chai = chai; (global as any).sinon = sinon; (global as any).expect = chai.expect; (global as any).should = chai.should(); const testsContext: any = require.context('./', true, /\.spec/); testsContext.keys().forEach(testsContext);