Mock @noble/post-quantum and jose dependencies, update Jest configurations in package.json for compatibility
Some checks failed
Backend Tests / test (push) Successful in 9m35s
Lint / lint (push) Failing after 4m58s

This commit is contained in:
2026-01-07 21:25:46 +01:00
parent 3363ef52ef
commit 93b86a6b7a
2 changed files with 70 additions and 6 deletions

View File

@@ -68,13 +68,20 @@
],
"rootDir": "src",
"testRegex": ".*\\.spec\\.ts$",
"transform": {
"^.+\\.(t|j)s$": "ts-jest"
},
"collectCoverageFrom": [
"**/*.(t|j)s"
],
"coverageDirectory": "../coverage",
"testEnvironment": "node"
"testEnvironment": "node",
"transformIgnorePatterns": [
"node_modules/(?!(jose|@noble)/)"
],
"transform": {
"^.+\\.(t|j)sx?$": "ts-jest"
},
"moduleNameMapper": {
"^@noble/post-quantum/(.*)$": "<rootDir>/../node_modules/@noble/post-quantum/$1",
"^@noble/hashes/(.*)$": "<rootDir>/../node_modules/@noble/hashes/$1"
}
}
}