@@ -4,6 +4,7 @@ import type * as babelJest from 'babel-jest'
44import type * as _babel from 'babel__core'
55import type * as _ts from 'typescript'
66
7+ import type { TsConfigCompilerOptionsJson } from './config/types'
78import {
89 ESM_JS_TRANSFORM_PATTERN ,
910 ESM_TS_JS_TRANSFORM_PATTERN ,
@@ -57,7 +58,7 @@ export interface ConfigCustomTransformer {
5758}
5859
5960/**
60- * @deprecated use ` TsJestTransformerOptions` instead
61+ * @deprecated use { @link TsJestTransformerOptions} instead
6162 */
6263export interface TsJestGlobalOptions {
6364 /**
@@ -67,23 +68,27 @@ export interface TsJestGlobalOptions {
6768 * - `path/to/tsconfig.json`: path to a specific tsconfig file (<rootDir> can be used)
6869 * - `{...}`: an object with inline compiler options
6970 *
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
7176 */
72- tsconfig ?: boolean | string | RawCompilerOptions
77+ tsconfig ?: boolean | string | RawCompilerOptions | TsConfigCompilerOptionsJson
7378
7479 /**
75- * @deprecated use `isolatedModules` in `tsconfig` instead
80+ * @deprecated use { @link TsConfigCompilerOptionsJson.isolatedModules} instead
7681 *
7782 * Compiles files as isolated modules (disables some features)
7883 *
79- * @default undefined (disabled )
84+ * @default ` undefined` (disables transpiling files with { @link _ts.transpileModule} )
8085 */
8186 isolatedModules ?: boolean
8287
8388 /**
8489 * Compiler to use
8590 *
86- * @default ' typescript'
91+ * @default ` typescript`
8792 */
8893 compiler ?: 'typescript' | 'ttypescript' | string
8994
@@ -98,23 +103,23 @@ export interface TsJestGlobalOptions {
98103 * - `false`: hide diagnostics of all files (kind of useless)
99104 * - `{...}`: an inline object with fine grained settings
100105 *
101- * @default undefined shows all diagnostics
106+ * @default ` undefined`
102107 */
103108 diagnostics ?:
104109 | boolean
105110 | {
106111 /**
107112 * Enables colorful and pretty output of errors
108113 *
109- * @default undefined (enabled )
114+ * @default ` undefined` (enables formatting errors )
110115 */
111116 pretty ?: boolean
112117 /**
113118 * List of TypeScript diagnostic error codes to ignore
114119 * [here](https://github.com/Microsoft/TypeScript/blob/master/src/compiler/diagnosticMessages.json).
115120 *
116121 * @see https://github.com/Microsoft/TypeScript/blob/master/src/compiler/diagnosticMessages.json
117- * @default [6059,18002,18003]
122+ * @default ` [6059,18002,18003]`
118123 */
119124 ignoreCodes ?: number | string | Array < number | string >
120125 /**
@@ -124,7 +129,7 @@ export interface TsJestGlobalOptions {
124129 /**
125130 * Logs TypeScript errors to stderr instead of throwing exceptions
126131 *
127- * @default undefined (disabled )
132+ * @default ` undefined` (TypeScript errors will be thrown as exceptions )
128133 */
129134 warnOnly ?: boolean
130135 }
@@ -136,7 +141,7 @@ export interface TsJestGlobalOptions {
136141 * - `path/to/.babelrc`: path to a babelrc file (<rootDir> can be used)
137142 * - `{...}`: an object with inline babel options
138143 *
139- * @default undefined does NOT use babel
144+ * @default ` undefined` (not using `Babel`)
140145 */
141146 babelConfig ?: boolean | string | BabelConfig
142147
0 commit comments