From 98a25068d675a54407f423390801023aebc2432b Mon Sep 17 00:00:00 2001 From: picklesrus Date: Thu, 1 Aug 2019 16:16:42 -0400 Subject: [PATCH] Enable react linting and move test file to .jsx instead of .js. --- package.json | 11 +++++------ test/.eslintrc.js | 1 + ...-step-button.test.js => next-step-button.test.jsx} | 0 3 files changed, 6 insertions(+), 6 deletions(-) rename test/unit/components/{next-step-button.test.js => next-step-button.test.jsx} (100%) 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