Files
k8s-set-context/node_modules/ts-jest/dist/legacy/ts-jest-transformer.d.ts
github-actions[bot] 52d71d28bd Add node modules and compiled JavaScript from main (#54)
Co-authored-by: Oliver King <oking3@uncc.edu>
2022-06-29 15:41:55 -04:00

23 lines
1.2 KiB
TypeScript

import type { SyncTransformer, TransformedSource } from '@jest/transform';
import type { CompilerInstance, ProjectConfigTsJest, TransformOptionsTsJest } from '../types';
import { ConfigSet } from './config/config-set';
export declare class TsJestTransformer implements SyncTransformer {
private readonly _logger;
protected _compiler: CompilerInstance;
private _tsResolvedModulesCachePath;
private _transformCfgStr;
private _depGraphs;
private _watchMode;
constructor();
private _configsFor;
protected _createConfigSet(config: ProjectConfigTsJest | undefined): ConfigSet;
protected _createCompiler(configSet: ConfigSet, cacheFS: Map<string, string>): void;
process(sourceText: string, sourcePath: string, transformOptions: TransformOptionsTsJest): TransformedSource;
processAsync(sourceText: string, sourcePath: string, transformOptions: TransformOptionsTsJest): Promise<TransformedSource>;
private processWithTs;
private runTsJestHook;
getCacheKey(fileContent: string, filePath: string, transformOptions: TransformOptionsTsJest): string;
getCacheKeyAsync(sourceText: string, sourcePath: string, transformOptions: TransformOptionsTsJest): Promise<string>;
private _getFsCachedResolvedModules;
}