Skip to content

Commit 6380ec4

Browse files
docs: correct ts config example (#2750)
* docs: correct ts config example * docs(getting-started): correct ts config example
1 parent 4253c2c commit 6380ec4

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

website/docs/getting-started/options.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,10 @@ Or through TypeScript (if `ts-node` is installed):
6161
import type { InitialOptionsTsJest } from 'ts-jest/dist/types'
6262

6363
const config: InitialOptionsTsJests = {
64-
'ts-jest': {
65-
// ts-jest configuration goes here
64+
globals: {
65+
'ts-jest': {
66+
// ts-jest configuration goes here
67+
},
6668
},
6769
}
6870
export default config

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,10 @@ Or through TypeScript (if `ts-node` is installed):
6161
import type { InitialOptionsTsJest } from 'ts-jest/dist/types'
6262

6363
const config: InitialOptionsTsJests = {
64-
'ts-jest': {
65-
// ts-jest configuration goes here
64+
globals: {
65+
'ts-jest': {
66+
// ts-jest configuration goes here
67+
},
6668
},
6769
}
6870
export default config

0 commit comments

Comments
 (0)