jest.config.js (10 lines of code) (raw):
/*
* For a detailed explanation regarding each configuration property and type check, visit:
* https://jestjs.io/docs/configuration
*/
// eslint-disable-next-line filenames/match-regex,import/no-commonjs,no-undef
module.exports = {
clearMocks: true,
testEnvironment: 'jsdom',
transform: {
'^.+\\.tsx?$': 'esbuild-jest'
},
moduleNameMapper: {
'^(\\.{1,2}/.*)\\.js$': '$1'
}
}