diff --git a/.eslintrc b/.eslintrc index 3c8bb7a72..62a4979da 100644 --- a/.eslintrc +++ b/.eslintrc @@ -43,7 +43,8 @@ devDependencies: [ "./src/**/*.test.js", "./features/*/*.js", - "./src/**/stories.js" + "./src/**/stories.js", + "./src/tests.js" ] } ], diff --git a/src/tests.js b/src/tests.js index 7de87cb8e..52236bf55 100644 --- a/src/tests.js +++ b/src/tests.js @@ -1,3 +1,12 @@ +import chai from 'chai'; +import sinonChai from 'sinon-chai'; +import chaiEnzyme from 'chai-enzyme'; +import chaiAsPromised from 'chai-as-promised'; + +chai.use(sinonChai); +chai.use(chaiEnzyme()); +chai.use(chaiAsPromised); + // load all tests into one bundle const testsContext = require.context('.', true, /\.test\.js$/); testsContext.keys().forEach(testsContext);