config-set.d.ts 1.6 KB

123456789101112131415161718192021222324252627282930313233343536
  1. /// <reference types="jest" />
  2. import { Logger } from 'bs-logger';
  3. import { CompilerOptions, CustomTransformers, ParsedCommandLine } from 'typescript';
  4. import { AstTransformerDesc, BabelConfig, BabelJestTransformer, TTypeScript, TsCompiler, TsJestConfig, TsJestGlobalOptions, TsJestHooksMap } from '../types';
  5. export declare class ConfigSet {
  6. readonly parentOptions?: TsJestGlobalOptions | undefined;
  7. get projectPackageJson(): Record<string, any>;
  8. get projectDependencies(): Record<string, string>;
  9. get jest(): jest.ProjectConfig;
  10. get tsJest(): TsJestConfig;
  11. get typescript(): ParsedCommandLine;
  12. get tsconfig(): any;
  13. get versions(): Record<string, string>;
  14. private static loadConfig;
  15. get babel(): BabelConfig | undefined;
  16. get compilerModule(): TTypeScript;
  17. get babelJestTransformer(): BabelJestTransformer | undefined;
  18. get tsCompiler(): TsCompiler;
  19. get astTransformers(): AstTransformerDesc[];
  20. get tsCustomTransformers(): CustomTransformers;
  21. get hooks(): TsJestHooksMap;
  22. get shouldReportDiagnostic(): (filePath: string) => boolean;
  23. get shouldStringifyContent(): (filePath: string) => boolean;
  24. get tsCacheDir(): string | undefined;
  25. get overriddenCompilerOptions(): Partial<CompilerOptions>;
  26. get rootDir(): string;
  27. get cwd(): string;
  28. get tsJestDigest(): string;
  29. get cacheKey(): string;
  30. readonly logger: Logger;
  31. constructor(jestConfig: jest.ProjectConfig, parentOptions?: TsJestGlobalOptions | undefined, parentLogger?: Logger);
  32. resolvePath(inputPath: string, { throwIfMissing, nodeResolve }?: {
  33. throwIfMissing?: boolean;
  34. nodeResolve?: boolean;
  35. }): string;
  36. }