You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/user/install.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -55,7 +55,7 @@ yarn ts-jest config:init
55
55
This will create a basic Jest configuration file which will make Jest know about your `.ts` files and handle them correctly.
56
56
57
57
You can also use the `jest --init` command (prefixed with either `npx` or `yarn` depending on what you're using) to have more options related to Jest.
58
-
However, answer `no` to the Jest question about whether or not to enable Typescript. Instead, add the line: `preset: "ts-jest"` to the the `jest.config.js` file afterwards.
58
+
However, answer `no` to the Jest question about whether or not to enable Typescript. Instead, add the line: `preset: "ts-jest"` to the `jest.config.js` file afterwards.
// sounds like js files are NOT handled, or handled with a unknown transformer, so we do not need to handle it
67
-
presetName=DEFAULT_PRESET
67
+
presetName=JestPresetNames.default
68
68
}
69
69
}
70
70
// ensure we are using a preset
71
-
presetName=presetName||DEFAULT_PRESET
72
-
migratedConfig.preset=presetName
71
+
presetName=presetName||JestPresetNames.default
72
+
preset=allPresets[presetName]
73
73
footNotes.push(
74
-
`Detected preset '${presetName.replace(
75
-
/^ts-jest\/presets\//,
76
-
'',
77
-
)}' as the best matching preset for your configuration.\nVisit https://kulshekhar.github.io/ts-jest/user/config/#jest-preset for more information about presets.\n`,
74
+
`Detected preset '${preset.label}' as the best matching preset for your configuration.
75
+
Visit https://kulshekhar.github.io/ts-jest/user/config/#jest-preset for more information about presets.
0 commit comments