diff --git a/package.json b/package.json index da5b9967b..ff18cd9de 100644 --- a/package.json +++ b/package.json @@ -139,12 +139,11 @@ "jest": { "setupFiles": [ "/test/helpers/enzyme-setup.js" - ], - - "moduleNameMapper": { - "\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "/test/__mocks__/fileMock.js", - "\\.(css|less|scss)$": "/test/__mocks__/styleMock.js" - } + ], + "moduleNameMapper": { + "\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "/test/__mocks__/fileMock.js", + "\\.(css|less|scss)$": "/test/__mocks__/styleMock.js" + } }, "nyc": { "include": [ diff --git a/test/.eslintrc.js b/test/.eslintrc.js index 26ef5d954..060657e10 100644 --- a/test/.eslintrc.js +++ b/test/.eslintrc.js @@ -1,4 +1,5 @@ module.exports = { + extends: ['scratch/react'], env: { jest: true } diff --git a/test/unit/components/next-step-button.test.js b/test/unit/components/next-step-button.test.jsx similarity index 100% rename from test/unit/components/next-step-button.test.js rename to test/unit/components/next-step-button.test.jsx