@@ -88,7 +88,9 @@ export default {
88
88
// ],
89
89
90
90
// A map from regular expressions to module names or to arrays of module names that allow to stub out resources with a single module
91
- // moduleNameMapper: {},
91
+ moduleNameMapper : {
92
+ '^(\\.{1,2}/.*)\\.js$' : '1ドル'
93
+ } ,
92
94
93
95
// An array of regexp pattern strings, matched against all module paths before considered 'visible' to the module loader
94
96
// modulePathIgnorePatterns: [],
@@ -100,7 +102,7 @@ export default {
100
102
// notifyMode: "failure-change",
101
103
102
104
// A preset that is used as a base for Jest's configuration
103
- preset : 'ts-jest'
105
+ // preset: 'ts-jest',
104
106
105
107
// Run tests from one or more projects
106
108
// projects: undefined,
@@ -173,7 +175,12 @@ export default {
173
175
// testRunner: "jest-circus/runner",
174
176
175
177
// A map from regular expressions to paths to transformers
176
- // transform: undefined,
178
+ transform : {
179
+ '^.+\\.ts?$' : [ 'ts-jest' , {
180
+ useESM : true ,
181
+ babelConfig : './babel.config.cjs'
182
+ } ]
183
+ }
177
184
178
185
// An array of regexp pattern strings that are matched against all source file paths, matched files will skip transformation
179
186
// transformIgnorePatterns: [
0 commit comments