2020-04-30 20:40:07 +08:00
|
|
|
import { CacheKeyOptions, TransformOptions, TransformedSource, Transformer } from '@jest/transform';
|
2020-03-31 20:42:07 +08:00
|
|
|
import { Config } from '@jest/types';
|
|
|
|
import { ConfigSet } from './config/config-set';
|
|
|
|
import { TsJestGlobalOptions } from './types';
|
|
|
|
export declare class TsJestTransformer implements Transformer {
|
|
|
|
private readonly logger;
|
|
|
|
private readonly id;
|
|
|
|
private readonly options;
|
|
|
|
constructor(baseOptions?: TsJestGlobalOptions);
|
2020-04-30 20:40:07 +08:00
|
|
|
configsFor(jestConfig: Config.ProjectConfig): ConfigSet;
|
2020-03-31 20:42:07 +08:00
|
|
|
process(input: string, filePath: Config.Path, jestConfig: Config.ProjectConfig, transformOptions?: TransformOptions): TransformedSource | string;
|
2020-04-30 20:40:07 +08:00
|
|
|
getCacheKey(fileContent: string, filePath: string, _jestConfigStr: string, transformOptions: CacheKeyOptions): string;
|
2020-03-31 20:42:07 +08:00
|
|
|
}
|