@@ -4,6 +4,7 @@ import type * as babelJest from 'babel-jest'
4
4
import type * as _babel from 'babel__core'
5
5
import type * as _ts from 'typescript'
6
6
7
+ import type { TsConfigCompilerOptionsJson } from './config/types'
7
8
import {
8
9
ESM_JS_TRANSFORM_PATTERN ,
9
10
ESM_TS_JS_TRANSFORM_PATTERN ,
@@ -57,7 +58,7 @@ export interface ConfigCustomTransformer {
57
58
}
58
59
59
60
/**
60
- * @deprecated use ` TsJestTransformerOptions` instead
61
+ * @deprecated use { @link TsJestTransformerOptions} instead
61
62
*/
62
63
export interface TsJestGlobalOptions {
63
64
/**
@@ -67,23 +68,27 @@ export interface TsJestGlobalOptions {
67
68
* - `path/to/tsconfig.json`: path to a specific tsconfig file (<rootDir> can be used)
68
69
* - `{...}`: an object with inline compiler options
69
70
*
70
- * @default undefined uses the default tsconfig file
71
+ * @default `undefined` (the default config file will be used if it exists)
72
+ *
73
+ * @remarks
74
+ *
75
+ * {@link RawCompilerOptions } will be replaced with {@link TsConfigCompilerOptionsJson } in the next major release
71
76
*/
72
- tsconfig ?: boolean | string | RawCompilerOptions
77
+ tsconfig ?: boolean | string | RawCompilerOptions | TsConfigCompilerOptionsJson
73
78
74
79
/**
75
- * @deprecated use `isolatedModules` in `tsconfig` instead
80
+ * @deprecated use { @link TsConfigCompilerOptionsJson.isolatedModules} instead
76
81
*
77
82
* Compiles files as isolated modules (disables some features)
78
83
*
79
- * @default undefined (disabled )
84
+ * @default ` undefined` (disables transpiling files with { @link _ts.transpileModule} )
80
85
*/
81
86
isolatedModules ?: boolean
82
87
83
88
/**
84
89
* Compiler to use
85
90
*
86
- * @default ' typescript'
91
+ * @default ` typescript`
87
92
*/
88
93
compiler ?: 'typescript' | 'ttypescript' | string
89
94
@@ -98,23 +103,23 @@ export interface TsJestGlobalOptions {
98
103
* - `false`: hide diagnostics of all files (kind of useless)
99
104
* - `{...}`: an inline object with fine grained settings
100
105
*
101
- * @default undefined shows all diagnostics
106
+ * @default ` undefined`
102
107
*/
103
108
diagnostics ?:
104
109
| boolean
105
110
| {
106
111
/**
107
112
* Enables colorful and pretty output of errors
108
113
*
109
- * @default undefined (enabled )
114
+ * @default ` undefined` (enables formatting errors )
110
115
*/
111
116
pretty ?: boolean
112
117
/**
113
118
* List of TypeScript diagnostic error codes to ignore
114
119
* [here](https://github.com/Microsoft/TypeScript/blob/master/src/compiler/diagnosticMessages.json).
115
120
*
116
121
* @see https://github.com/Microsoft/TypeScript/blob/master/src/compiler/diagnosticMessages.json
117
- * @default [6059,18002,18003]
122
+ * @default ` [6059,18002,18003]`
118
123
*/
119
124
ignoreCodes ?: number | string | Array < number | string >
120
125
/**
@@ -124,7 +129,7 @@ export interface TsJestGlobalOptions {
124
129
/**
125
130
* Logs TypeScript errors to stderr instead of throwing exceptions
126
131
*
127
- * @default undefined (disabled )
132
+ * @default ` undefined` (TypeScript errors will be thrown as exceptions )
128
133
*/
129
134
warnOnly ?: boolean
130
135
}
@@ -136,7 +141,7 @@ export interface TsJestGlobalOptions {
136
141
* - `path/to/.babelrc`: path to a babelrc file (<rootDir> can be used)
137
142
* - `{...}`: an object with inline babel options
138
143
*
139
- * @default undefined does NOT use babel
144
+ * @default ` undefined` (not using `Babel`)
140
145
*/
141
146
babelConfig ?: boolean | string | BabelConfig
142
147
0 commit comments