From 089d01a80fcdd4161f647f979953889ddfa434fd Mon Sep 17 00:00:00 2001 From: Josh Rose Date: Fri, 15 Sep 2023 16:59:06 +0100 Subject: [PATCH] feat: update test config to support jsx and remove deprecated options --- jest.config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jest.config.js b/jest.config.js index e179821..448dbd9 100644 --- a/jest.config.js +++ b/jest.config.js @@ -4,9 +4,10 @@ module.exports = { ], testEnvironment: 'jsdom', moduleNameMapper: { + "\\.[jt]sx?$": 'babel-jest', '\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$': '/__mocks__/fileMock.js', '\\.(css|scss)$': '/__mocks__/styleMock.js' }, setupFiles: ['src/setupJest.js'], - setupTestFrameworkScriptFile: 'src/setupTests.js' + setupFilesAfterEnv: ['src/setupTests.js'] };