back to jest, currently has the best experience
This commit is contained in:
18
jest.config.js
Normal file
18
jest.config.js
Normal file
@@ -0,0 +1,18 @@
|
||||
/** @type {import('@jest/types').Config.InitialOptions} */
|
||||
const config = {
|
||||
transform: {
|
||||
"^.+\\.tsx?$": [
|
||||
"esbuild-jest",
|
||||
{
|
||||
format: "esm",
|
||||
sourcemap: true,
|
||||
},
|
||||
],
|
||||
},
|
||||
moduleNameMapper: {
|
||||
"(^\\./.+)\\.js$": "$1",
|
||||
},
|
||||
extensionsToTreatAsEsm: [".ts", ".tsx"],
|
||||
}
|
||||
|
||||
export default config
|
||||
Reference in New Issue
Block a user