fix(js-sdk): transform tests with ts-jest and configure node
This commit is contained in:
@@ -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
|
||||
}
|
||||
]
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user