保誠-保戶業務員媒合平台
HelenHuang
2022-06-09 26fa49f4b0aa658d65a21fffe828f39e78302573
PAMapp/node_modules/ts-jest/dist/types.d.ts
@@ -2,7 +2,7 @@
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 {
@@ -12,6 +12,16 @@
    }
}
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>> {
@@ -26,7 +36,7 @@
export interface TsJestGlobalOptions {
    tsconfig?: boolean | string | RawCompilerOptions;
    isolatedModules?: boolean;
    compiler?: string;
    compiler?: 'typescript' | 'ttypescript' | string;
    astTransformers?: ConfigCustomTransformer;
    diagnostics?: boolean | {
        pretty?: boolean;