Skip to content

Commit

Permalink
have jest load jsx files
Browse files Browse the repository at this point in the history
  • Loading branch information
no-chris committed Feb 29, 2024
1 parent 877d061 commit 59d5e14
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions jest.config.base.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ module.exports = {

transform: {
'\\.js$': 'babel-jest',
'\\.jsx$': 'babel-jest',
'\\.txt': 'jest-text-transformer',
'\\.svg': 'jest-text-transformer',
},
Expand All @@ -29,5 +30,6 @@ module.exports = {
moduleNameMapper: {
'\\.(css|scss)$': '<rootDir>/tests/styleMock.js',
'\\.(png)$': '<rootDir>/tests/assetMock.js',
'.*\\.txt\\?raw': 'jest-text-transformer',
},
};

0 comments on commit 59d5e14

Please sign in to comment.