ts-jest-transformer.d.ts 822 B

1234567891011121314151617
  1. /// <reference types="jest" />
  2. import { Logger } from 'bs-logger';
  3. import { ConfigSet } from './config/config-set';
  4. import { TsJestGlobalOptions } from './types';
  5. export declare class TsJestTransformer implements jest.Transformer {
  6. static get lastTransformerId(): number;
  7. readonly logger: Logger;
  8. readonly id: number;
  9. readonly options: TsJestGlobalOptions;
  10. constructor(baseOptions?: TsJestGlobalOptions);
  11. configsFor(jestConfig: jest.ProjectConfig | string): ConfigSet;
  12. process(input: string, filePath: jest.Path, jestConfig: jest.ProjectConfig, transformOptions?: jest.TransformOptions): jest.TransformedSource | string;
  13. getCacheKey(fileContent: string, filePath: string, jestConfigStr: string, transformOptions?: {
  14. instrument?: boolean;
  15. rootDir?: string;
  16. }): string;
  17. }