UNPKG

ts-jest

Version:

A preprocessor with source maps support to help use TypeScript with Jest

29 lines (28 loc) 1.33 kB
import type { Config } from '@jest/types'; import { Logger } from 'bs-logger'; import { CompilerOptions, CustomTransformers, Diagnostic, ParsedCommandLine } from 'typescript'; import type { TTypeScript } from '../types'; export declare class ConfigSet { private readonly jestConfig; private readonly parentLogger?; readonly logger: Logger; readonly compilerModule: TTypeScript; readonly isolatedModules: boolean; readonly cwd: string; tsCacheDir: string | undefined; parsedTsConfig: ParsedCommandLine | Record<string, any>; customTransformers: CustomTransformers; readonly rootDir: string; protected _overriddenCompilerOptions: Partial<CompilerOptions>; constructor(jestConfig: Config.ProjectConfig, parentLogger?: Logger | undefined); protected _resolveTsConfig(compilerOptions?: CompilerOptions, resolvedConfigFile?: string): Record<string, any>; get tsJestDigest(): string; isTestFile(fileName: string): boolean; shouldStringifyContent(filePath: string): boolean; raiseDiagnostics(diagnostics: Diagnostic[], filePath?: string, logger?: Logger): void; shouldReportDiagnostics(filePath: string): boolean; resolvePath(inputPath: string, { throwIfMissing, nodeResolve }?: { throwIfMissing?: boolean; nodeResolve?: boolean; }): string; }