back to jest, currently has the best experience

This commit is contained in:
MapleLeaf
2021-12-21 10:10:53 -06:00
parent e2ea46a18f
commit f0a2e56b26
5 changed files with 1932 additions and 273 deletions

18
jest.config.js Normal file
View 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