fix(js-sdk): transform tests with ts-jest and configure node

This commit is contained in:
Gergo Moricz
2024-07-18 14:20:51 +02:00
parent 12ec519f9b
commit a23b125471
4 changed files with 215 additions and 125 deletions
+16
View File
@@ -0,0 +1,16 @@
/** @type {import('ts-jest').JestConfigWithTsJest} **/
export default {
testEnvironment: "node",
"moduleNameMapper": {
"^(\\.{1,2}/.*)\\.js$": "$1",
},
"extensionsToTreatAsEsm": [".ts"],
"transform": {
"^.+\\.(mt|t|cj|j)s$": [
"ts-jest",
{
"useESM": true
}
]
},
};