jest-preset-angular
Version:
Jest preset configuration for Angular projects
13 lines (12 loc) • 786 B
TypeScript
import type { TransformedSource } from '@jest/transform';
import { ConfigSet, TsJestTransformer, type TsJestTransformOptions } from 'ts-jest';
import type { NgJestTransformerOptions } from './config/config';
export declare class NgJestTransformer extends TsJestTransformer {
#private;
constructor(transformerConfig?: NgJestTransformerOptions);
protected _createConfigSet(config: TsJestTransformOptions['config'] | undefined): ConfigSet;
protected _createCompiler(configSet: ConfigSet, cacheFS: Map<string, string>): void;
private get version();
process(fileContent: string, filePath: string, transformOptions: TsJestTransformOptions): TransformedSource;
getCacheKey(fileContent: string, filePath: string, transformOptions: TsJestTransformOptions): string;
}