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
|[**`diagnostics`**][diagnostics]|[Diagnostics related configuration.][diagnostics]|`boolean`\|`object`|_enabled_|
194
+
|[**`babelConfig`**][babelConfig]|[Babel(Jest) related configuration.][babelConfig]|`boolean`\|`string`\|`object`|_disabled_|
195
195
|[**`stringifyContentPathRegex`**][stringifyContentPathRegex]|[Files which will become modules returning self content.][stringifyContentPathRegex]|`string`\|`RegExp`|_disabled_|
Copy file name to clipboardexpand all lines: docs/user/config/tsConfig.md
+6-4
Original file line number
Diff line number
Diff line change
@@ -2,9 +2,9 @@
2
2
title: TypeScript Config option
3
3
---
4
4
5
-
The `tsConfig` option allows you to define the which `tsconfig` JSON file to use. An inline compiler options object can also be specified instead of the path to a file.
5
+
The `tsConfig` option (alias `tsconfig`) allows you to define which `tsconfig` JSON file to use. An inline [compiler options][] object can also be specified instead of a file path.
6
6
7
-
By default, it'll use the default TypeScript and use the project's `tsconfig.json`file. If it cannot find one, it'll use defaults TypeScript compiler options (except`es5` is used as target instead of `es3`).
7
+
By default`ts-jest` will try to find a `tsconfig.json`in your project. If it cannot find one, it will use the default TypeScript [compiler options][]; except, `ES5` is used as `target` instead of `ES3`.
8
8
9
9
If you need to use defaults and force `ts-jest` to use the defaults even if there is a `tsconfig.json` in your project, you can set this option to `false`.
10
10
@@ -48,7 +48,7 @@ module.exports = {
48
48
49
49
#### Inline compiler options
50
50
51
-
Refer to the [TypeScript compiler options](https://www.typescriptlang.org/docs/handbook/compiler-options.html) to know what can be used.
51
+
Refer to the TypeScript [compiler options][] for reference.
52
52
It's basically the same object you'd put in your `tsconfig.json`'s `compilerOptions`.
By default `ts-jest` will try to find the`tsconfig.json` in your project. But you may want to not use it at all and keep TypeScript default options. You can achieve this by setting `tsConfig` to `false`.
92
+
By default `ts-jest` will try to find a`tsconfig.json` in your project. But you may not want to use it at all and keep TypeScript default options. You can achieve this by setting `tsConfig` to `false`.
0 commit comments