Skip to content

Commit

Permalink
Fix jest.config.js
Browse files Browse the repository at this point in the history
  • Loading branch information
reldredge71 committed Mar 9, 2022
1 parent 2fba43c commit 1bf6987
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 @@ -11,14 +11,15 @@ module.exports = {
'jest-date-mock',
'<rootDir>/jest/setup.js'
],
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
moduleNameMapper: {
'^.+\\.(css|scss)$': '<rootDir>/__mocks__/styleMock.js'
},
modulePaths: [
'<rootDir>/src'
],
transform: {
'^.+\\.js?$': 'babel-jest',
'\\.[jt]sx?$': 'babel-jest',
'^.+\\.html$': '<rootDir>/jest/htmlTransform.js'
}
}

0 comments on commit 1bf6987

Please sign in to comment.