From bef36b7d936218610d8a8d540fd8f051b6302879 Mon Sep 17 00:00:00 2001 From: Robert Eldredge Date: Wed, 9 Mar 2022 16:00:21 -0500 Subject: [PATCH] Fix jest.config.js --- jest.config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jest.config.js b/jest.config.js index fd40c2da3..a8eb56a45 100644 --- a/jest.config.js +++ b/jest.config.js @@ -11,6 +11,7 @@ module.exports = { 'jest-date-mock', '/jest/setup.js' ], + moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'], moduleNameMapper: { '^.+\\.(css|scss)$': '/__mocks__/styleMock.js' }, @@ -18,7 +19,7 @@ module.exports = { '/src' ], transform: { - '^.+\\.js?$': 'babel-jest', + '\\.[jt]sx?$': 'babel-jest', '^.+\\.html$': '/jest/htmlTransform.js' } }