Upgrade jest => 29.0

This commit is contained in:
Ryan Gossiaux
2023-07-11 13:19:50 -07:00
parent 0214855f76
commit 2035548117
4 changed files with 2489 additions and 2419 deletions

View File

@@ -2,7 +2,7 @@ module.exports = {
transform: {
"^.+\\.svelte$": ["svelte-jester", { preprocess: true }],
"^.+\\.js$": "babel-jest",
"^.+\\.ts$": "ts-jest",
"^.+\\.ts$": ["ts-jest", { babelConfig: true, useESM: true }],
},
setupFilesAfterEnv: ["@testing-library/jest-dom/extend-expect"],
testEnvironment: "jsdom",
@@ -10,10 +10,4 @@ module.exports = {
moduleNameMapper: {
"\\$lib/(.+)$": "<rootDir>/src/lib/$1",
},
globals: {
"ts-jest": {
babelConfig: true,
useESM: true,
}
}
};