mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-07 19:10:12 +08:00
finish file-graph and solve jest ts
This commit is contained in:
1 parent
2a542302bc
commit
253bd04588
9 files changed
+40
-28
No files matched your search
+4
-2
@@ -2,6 +2,8 @@
|
||||
// const { jsWithTs: tsjPreset } = require('ts-jest/presets')
|
||||
|
||||
module.exports = {
|
||||
preset: 'ts-jest/presets/js-with-ts',
|
||||
testEnvironment: 'node',
|
||||
preset: 'ts-jest/presets/default-esm',
|
||||
moduleNameMapper: {
|
||||
'^(\\.{1,2}/.*)\\.js$': '$1', // Redirect .js imports to .ts files
|
||||
},
|
||||
}
|
||||
Reference in new issue
Block a user