UNPKG

771 BTypeScriptView Raw
1import { CacheKeyOptions, TransformOptions, TransformedSource, Transformer } from '@jest/transform';
2import { Config } from '@jest/types';
3import { ConfigSet } from './config/config-set';
4import { TsJestGlobalOptions } from './types';
5export declare class TsJestTransformer implements Transformer {
6 private readonly logger;
7 private readonly id;
8 private readonly options;
9 constructor(baseOptions?: TsJestGlobalOptions);
10 configsFor(jestConfig: Config.ProjectConfig): ConfigSet;
11 process(input: string, filePath: Config.Path, jestConfig: Config.ProjectConfig, transformOptions?: TransformOptions): TransformedSource | string;
12 getCacheKey(fileContent: string, filePath: string, _jestConfigStr: string, transformOptions: CacheKeyOptions): string;
13}