github-pages-deploy-action/node_modules/ts-jest/dist/ts-jest-transformer.d.ts

19 lines
916 B
TypeScript
Raw Normal View History

2020-03-02 21:16:42 +08:00
import { TransformOptions, TransformedSource, Transformer } from '@jest/transform/build/types';
import { Config } from '@jest/types';
2020-01-28 13:08:03 +08:00
import { Logger } from 'bs-logger';
import { ConfigSet } from './config/config-set';
import { TsJestGlobalOptions } from './types';
2020-03-02 21:16:42 +08:00
export declare class TsJestTransformer implements Transformer {
2020-01-28 13:08:03 +08:00
static get lastTransformerId(): number;
readonly logger: Logger;
readonly id: number;
readonly options: TsJestGlobalOptions;
constructor(baseOptions?: TsJestGlobalOptions);
2020-03-02 21:16:42 +08:00
configsFor(jestConfig: Config.ProjectConfig | string): ConfigSet;
process(input: string, filePath: Config.Path, jestConfig: Config.ProjectConfig, transformOptions?: TransformOptions): TransformedSource | string;
2020-01-28 13:08:03 +08:00
getCacheKey(fileContent: string, filePath: string, jestConfigStr: string, transformOptions?: {
instrument?: boolean;
rootDir?: string;
}): string;
}