Skip to content

Commit 5d6e514

Browse files
authored
docs(devs-infra): add note when using TypeScript Jest config file (#2798)
1 parent aaab61a commit 5d6e514

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

website/docs/getting-started/options.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,13 @@ const config: InitialOptionsTsJest = {
7070
export default config
7171
```
7272

73+
:::important
74+
75+
When using TypeScript Jest config file, Jest will use `ts-node` to compile the config file. `ts-jest` doesn't take part in
76+
that process.
77+
78+
:::
79+
7380
### Options
7481

7582
All options have default values which should fit most of the projects. Click on the option's name to see details and example(s).

website/versioned_docs/version-27.0/getting-started/options.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,13 @@ const config: InitialOptionsTsJest = {
7070
export default config
7171
```
7272

73+
:::important
74+
75+
When using TypeScript Jest config file, Jest will use `ts-node` to compile the config file. `ts-jest` doesn't take part in
76+
that process.
77+
78+
:::
79+
7380
### Options
7481

7582
All options have default values which should fit most of the projects. Click on the option's name to see details and example(s).

0 commit comments

Comments
 (0)