Skip to content

Commit

Permalink
feat: update test config to support jsx and remove deprecated options
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshTheWanderer committed Sep 15, 2023
1 parent 9ebd011 commit 089d01a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)$': '<rootDir>/__mocks__/fileMock.js',
'\\.(css|scss)$': '<rootDir>/__mocks__/styleMock.js'
},
setupFiles: ['<rootDir>src/setupJest.js'],
setupTestFrameworkScriptFile: '<rootDir>src/setupTests.js'
setupFilesAfterEnv: ['<rootDir>src/setupTests.js']
};

0 comments on commit 089d01a

Please sign in to comment.