1 | import { createJestPreset as createJestPresetCore } from './config/create-jest-preset';
|
2 | import { TsJestTransformer } from './ts-jest-transformer';
|
3 | import type { TsJestGlobalOptions } from './types';
|
4 | import { mocked as mockedCore } from './util/testing';
|
5 | declare module '@jest/types' {
|
6 | namespace Config {
|
7 | interface ConfigGlobals {
|
8 | 'ts-jest': TsJestGlobalOptions;
|
9 | }
|
10 | }
|
11 | }
|
12 | export declare const mocked: typeof mockedCore;
|
13 | export declare const createJestPreset: typeof createJestPresetCore;
|
14 | export declare const pathsToModuleNameMapper: (mapping: import("typescript").MapLike<string[]>, { prefix }?: {
|
15 | prefix?: string | undefined;
|
16 | }) => {
|
17 | [key: string]: string | string[];
|
18 | } | undefined;
|
19 | export declare function createTransformer(baseConfig?: TsJestGlobalOptions): TsJestTransformer;
|
20 | declare const jestPreset: Pick<Partial<{
|
21 | automock: boolean;
|
22 | bail: number | boolean;
|
23 | cache: boolean;
|
24 | cacheDirectory: string;
|
25 | clearMocks: boolean;
|
26 | changedFilesWithAncestor: boolean;
|
27 | changedSince: string;
|
28 | collectCoverage: boolean;
|
29 | collectCoverageFrom: string[];
|
30 | collectCoverageOnlyFrom: {
|
31 | [key: string]: boolean;
|
32 | };
|
33 | coverageDirectory: string;
|
34 | coveragePathIgnorePatterns: string[];
|
35 | coverageProvider: "babel" | "v8";
|
36 | coverageReporters: import("@jest/types/build/Config").CoverageReporters;
|
37 | coverageThreshold: {
|
38 | global: {
|
39 | [key: string]: number;
|
40 | };
|
41 | };
|
42 | dependencyExtractor: string;
|
43 | detectLeaks: boolean;
|
44 | detectOpenHandles: boolean;
|
45 | displayName: string | import("@jest/types/build/Config").DisplayName;
|
46 | expand: boolean;
|
47 | extraGlobals: string[];
|
48 | filter: string;
|
49 | findRelatedTests: boolean;
|
50 | forceCoverageMatch: string[];
|
51 | forceExit: boolean;
|
52 | json: boolean;
|
53 | globals: import("@jest/types/build/Config").ConfigGlobals;
|
54 | globalSetup: string | null | undefined;
|
55 | globalTeardown: string | null | undefined;
|
56 | haste: import("@jest/types/build/Config").HasteConfig;
|
57 | reporters: (string | import("@jest/types/build/Config").ReporterConfig)[];
|
58 | logHeapUsage: boolean;
|
59 | lastCommit: boolean;
|
60 | listTests: boolean;
|
61 | mapCoverage: boolean;
|
62 | maxConcurrency: number;
|
63 | maxWorkers: string | number;
|
64 | moduleDirectories: string[];
|
65 | moduleFileExtensions: string[];
|
66 | moduleLoader: string;
|
67 | moduleNameMapper: {
|
68 | [key: string]: string | string[];
|
69 | };
|
70 | modulePathIgnorePatterns: string[];
|
71 | modulePaths: string[];
|
72 | name: string;
|
73 | noStackTrace: boolean;
|
74 | notify: boolean;
|
75 | notifyMode: string;
|
76 | onlyChanged: boolean;
|
77 | outputFile: string;
|
78 | passWithNoTests: boolean;
|
79 | preprocessorIgnorePatterns: string[];
|
80 | preset: string | null | undefined;
|
81 | prettierPath: string | null | undefined;
|
82 | projects: string[];
|
83 | replname: string | null | undefined;
|
84 | resetMocks: boolean;
|
85 | resetModules: boolean;
|
86 | resolver: string | null | undefined;
|
87 | restoreMocks: boolean;
|
88 | rootDir: string;
|
89 | roots: string[];
|
90 | runner: string;
|
91 | runTestsByPath: boolean;
|
92 | scriptPreprocessor: string;
|
93 | setupFiles: string[];
|
94 | setupTestFrameworkScriptFile: string;
|
95 | setupFilesAfterEnv: string[];
|
96 | silent: boolean;
|
97 | skipFilter: boolean;
|
98 | skipNodeResolution: boolean;
|
99 | slowTestThreshold: number;
|
100 | snapshotResolver: string;
|
101 | snapshotSerializers: string[];
|
102 | errorOnDeprecated: boolean;
|
103 | testEnvironment: string;
|
104 | testEnvironmentOptions: Record<string, any>;
|
105 | testFailureExitCode: string | number;
|
106 | testLocationInResults: boolean;
|
107 | testMatch: string[];
|
108 | testNamePattern: string;
|
109 | testPathDirs: string[];
|
110 | testPathIgnorePatterns: string[];
|
111 | testRegex: string | string[];
|
112 | testResultsProcessor: string;
|
113 | testRunner: string;
|
114 | testSequencer: string;
|
115 | testURL: string;
|
116 | testTimeout: number;
|
117 | timers: "real" | "fake";
|
118 | transform: {
|
119 | [regex: string]: string | import("@jest/types/build/Config").TransformerConfig;
|
120 | };
|
121 | transformIgnorePatterns: string[];
|
122 | watchPathIgnorePatterns: string[];
|
123 | unmockedModulePathPatterns: string[];
|
124 | updateSnapshot: boolean;
|
125 | useStderr: boolean;
|
126 | verbose?: boolean | undefined;
|
127 | watch: boolean;
|
128 | watchAll: boolean;
|
129 | watchman: boolean;
|
130 | watchPlugins: (string | [string, Record<string, any>])[];
|
131 | }>, "moduleFileExtensions" | "testMatch" | "transform">;
|
132 | export { jestPreset, };
|