移除路径映射,只让Jest处理路径解析
This commit is contained in:
@@ -28,7 +28,27 @@ module.exports = {
|
||||
verbose: true,
|
||||
transform: {
|
||||
'^.+\\.tsx?$': ['ts-jest', {
|
||||
tsconfig: 'tsconfig.json',
|
||||
tsconfig: {
|
||||
target: 'ES2020',
|
||||
module: 'CommonJS',
|
||||
moduleResolution: 'node',
|
||||
lib: ['ES2020', 'DOM'],
|
||||
strict: true,
|
||||
esModuleInterop: true,
|
||||
allowSyntheticDefaultImports: true,
|
||||
skipLibCheck: true,
|
||||
forceConsistentCasingInFileNames: true,
|
||||
experimentalDecorators: true,
|
||||
emitDecoratorMetadata: true,
|
||||
isolatedModules: false,
|
||||
allowJs: true,
|
||||
resolveJsonModule: true,
|
||||
baseUrl: '.',
|
||||
paths: {
|
||||
'@esengine/ecs-framework': ['../core/src'],
|
||||
'@esengine/ecs-framework/*': ['../core/src/*']
|
||||
}
|
||||
},
|
||||
useESM: false,
|
||||
}],
|
||||
},
|
||||
|
||||
16
packages/network/tsconfig.test.json
Normal file
16
packages/network/tsconfig.test.json
Normal file
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"extends": "./tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"noEmit": true,
|
||||
"skipLibCheck": true
|
||||
},
|
||||
"include": [
|
||||
"src/**/*",
|
||||
"tests/**/*"
|
||||
],
|
||||
"exclude": [
|
||||
"node_modules",
|
||||
"bin",
|
||||
"dist"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user