Skip to content

Commit

Permalink
special test config without messing with parcel
Browse files Browse the repository at this point in the history
  • Loading branch information
birm committed Jan 15, 2025
1 parent 5dd6651 commit adaf556
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions babel-jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = {
presets: [
'@babel/preset-env',
'@babel/preset-react',
],
};

4 changes: 2 additions & 2 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module.exports = {
testEnvironment: 'jsdom',
moduleFileExtensions: ['js', 'jsx'],
transform: {
'^.+\\.jsx?$': 'babel-jest',
'^.+\\.jsx?$': ['babel-jest', { configFile: './babel-jest.config.js' }],
},
moduleNameMapper: {
'\\.css$': 'identity-obj-proxy',
Expand All @@ -12,4 +12,4 @@ module.exports = {
],
setupFilesAfterEnv: ['@testing-library/jest-dom', './tests/setupTests.js'],
};


0 comments on commit adaf556

Please sign in to comment.