| | |
| | | import type { Config } from '@jest/types'; |
| | | import type * as _babel from 'babel__core'; |
| | | import type * as _ts from 'typescript'; |
| | | import type { ConfigSet } from './config/config-set'; |
| | | import type { ConfigSet } from './config'; |
| | | import type { RawCompilerOptions } from './raw-compiler-options'; |
| | | declare module '@jest/types' { |
| | | namespace Config { |
| | |
| | | } |
| | | } |
| | | export declare type TTypeScript = typeof _ts; |
| | | export interface TEsBuild { |
| | | transformSync(input: string, options?: { |
| | | loader: 'ts' | 'js'; |
| | | format: 'cjs' | 'esm'; |
| | | target: string; |
| | | }): { |
| | | code: string; |
| | | map: string; |
| | | }; |
| | | } |
| | | export declare type BabelConfig = _babel.TransformOptions; |
| | | export declare type TsJestPresets = Pick<Config.InitialOptions, 'extensionsToTreatAsEsm' | 'moduleFileExtensions' | 'transform' | 'testMatch'>; |
| | | export interface AstTransformer<T = Record<string, unknown>> { |
| | |
| | | export interface TsJestGlobalOptions { |
| | | tsconfig?: boolean | string | RawCompilerOptions; |
| | | isolatedModules?: boolean; |
| | | compiler?: string; |
| | | compiler?: 'typescript' | 'ttypescript' | string; |
| | | astTransformers?: ConfigCustomTransformer; |
| | | diagnostics?: boolean | { |
| | | pretty?: boolean; |