fix: nodenext moduleResolution for js peer (#271)

This commit is contained in:
Dima
2023-02-22 17:46:14 +07:00
committed by GitHub
parent 96fa90affe
commit 78d98f15c1
14 changed files with 41 additions and 31 deletions

View File

@ -1,16 +1,17 @@
/** @type {import('ts-jest').JestConfigWithTsJest} */
module.exports = {
extensionsToTreatAsEsm: ['.ts'],
moduleNameMapper: {
'^(\\.{1,2}/.*)\\.js$': '$1',
"preset": "ts-jest/presets/default-esm",
"moduleNameMapper": {
"^(\\.{1,2}/.*)\\.js$": "$1"
},
testPathIgnorePatterns: ['dist'],
transform: {
'^.+\\.tsx?$': [
'ts-jest',
"transform": {
"^.+\\.tsx?$": [
"ts-jest",
{
useESM: true,
},
],
},
"useESM": true
}
]
}
};