Add jest config to handle ESM required by jose version update

This commit is contained in:
Tingting Wang 2025-12-02 00:55:43 +00:00
parent c819193a6e
commit 1a7704f61a

View File

@ -42,6 +42,7 @@
"verbose": true,
"clearMocks": true,
"testEnvironment": "node",
"extensionsToTreatAsEsm": [".ts"],
"moduleFileExtensions": [
"js",
"ts"
@ -56,8 +57,12 @@
"/node_modules/",
"/dist/"
],
"transformIgnorePatterns": [
"/node_modules/(?!jose/)"
],
"transform": {
"^.+\\.ts$": "ts-jest"
"^.+\\.ts$": "ts-jest",
"^.+\\.js$": "ts-jest"
},
"coverageReporters": [
"json-summary",