test: fix unit test failures

This commit is contained in:
Vangie Du
2025-03-07 14:49:17 +08:00
parent f7cde17919
commit 0d41a17ef6
4 changed files with 10 additions and 9 deletions

View File

@@ -15,6 +15,8 @@ const config: Config = {
moduleNameMapper: {
"^@/(.*)$": "<rootDir>/$1",
},
extensionsToTreatAsEsm: [".ts", ".tsx"],
injectGlobals: true,
};
// createJestConfig is exported this way to ensure that next/jest can load the Next.js config which is async