Skip to content

Commit 4ead970

Browse files
committed
--wip-- [skip ci]
1 parent e062e3d commit 4ead970

File tree

2 files changed

+55
-54
lines changed

2 files changed

+55
-54
lines changed

packages/jest-config/src/Defaults.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,12 @@ const defaultOptions: Config.DefaultOptions = {
2828
coverageThreshold: null,
2929
cwd: process.cwd(),
3030
dependencyExtractor: null,
31+
detectLeaks: false,
32+
detectOpenHandles: false,
33+
displayName: null,
3134
errorOnDeprecated: false,
3235
expand: false,
36+
extraGlobals: null,
3337
filter: null,
3438
forceCoverageMatch: [],
3539
globalSetup: null,
@@ -44,6 +48,7 @@ const defaultOptions: Config.DefaultOptions = {
4448
moduleFileExtensions: ['js', 'json', 'jsx', 'ts', 'tsx', 'node'],
4549
moduleNameMapper: {},
4650
modulePathIgnorePatterns: [],
51+
name: null,
4752
noStackTrace: false,
4853
notify: false,
4954
notifyMode: 'failure-change',

packages/jest-types/src/Config.ts

Lines changed: 50 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -24,84 +24,80 @@ export type ReporterConfig = [string, Object];
2424
export type ConfigGlobals = Object;
2525

2626
export type DefaultOptions = {
27-
automock: boolean;
27+
automock: false;
2828
bail: number;
29-
browser: boolean;
30-
cache: boolean;
29+
browser: false;
30+
cache: true;
3131
cacheDirectory: Path;
32-
changedFilesWithAncestor: boolean;
33-
clearMocks: boolean;
34-
collectCoverage: boolean;
35-
collectCoverageFrom: Array<string> | null | undefined;
36-
coverageDirectory: string | null | undefined;
32+
changedFilesWithAncestor: false;
33+
clearMocks: false;
34+
collectCoverage: false;
35+
collectCoverageFrom: null;
36+
coverageDirectory: null;
3737
coveragePathIgnorePatterns: Array<string>;
3838
coverageReporters: Array<string>;
39-
coverageThreshold:
40-
| {
41-
global: {
42-
[key: string]: number;
43-
};
44-
}
45-
| null
46-
| undefined;
39+
coverageThreshold: null;
4740
cwd: Path;
48-
dependencyExtractor: string | null | undefined;
49-
errorOnDeprecated: boolean;
50-
expand: boolean;
51-
filter: Path | null | undefined;
41+
dependencyExtractor: undefined;
42+
detectLeaks: false;
43+
detectOpenHandles: false;
44+
displayName: null;
45+
errorOnDeprecated: false;
46+
expand: false;
47+
extraGlobals: null;
48+
filter: null;
5249
forceCoverageMatch: Array<Glob>;
5350
globals: ConfigGlobals;
54-
globalSetup: string | null | undefined;
55-
globalTeardown: string | null | undefined;
51+
globalSetup: null;
52+
globalTeardown: null;
5653
haste: HasteConfig;
5754
maxConcurrency: number;
5855
moduleDirectories: Array<string>;
5956
moduleFileExtensions: Array<string>;
60-
moduleNameMapper: {
61-
[key: string]: string;
62-
};
57+
moduleLoader: null;
58+
moduleNameMapper: {[key: string]: Path};
6359
modulePathIgnorePatterns: Array<string>;
64-
noStackTrace: boolean;
65-
notify: boolean;
66-
notifyMode: string;
67-
preset: string | null | undefined;
68-
prettierPath: string | null | undefined;
69-
projects: Array<string | ProjectConfig> | null | undefined;
70-
resetMocks: boolean;
71-
resetModules: boolean;
72-
resolver: Path | null | undefined;
73-
restoreMocks: boolean;
74-
rootDir: Path | null | undefined;
75-
roots: Array<Path> | null | undefined;
76-
runner: string;
77-
runTestsByPath: boolean;
60+
modulePaths: null;
61+
name: null;
62+
noStackTrace: false;
63+
notify: false;
64+
notifyMode: NotifyMode;
65+
preset: null;
66+
prettierPath: 'prettier';
67+
projects: null;
68+
resetMocks: false;
69+
resetModules: false;
70+
resolver: null;
71+
restoreMocks: false;
72+
rootDir: null;
73+
roots: Array<string>;
74+
runTestsByPath: false;
75+
runner: 'jest-runner';
7876
setupFiles: Array<Path>;
7977
setupFilesAfterEnv: Array<Path>;
80-
skipFilter: boolean;
78+
skipFilter: false;
79+
skipNodeResolution: false;
80+
snapshotResolver: null;
8181
snapshotSerializers: Array<Path>;
8282
testEnvironment: string;
8383
testEnvironmentOptions: Object;
8484
testFailureExitCode: string | number;
85-
testLocationInResults: boolean;
85+
testLocationInResults: false;
8686
testMatch: Array<Glob>;
8787
testPathIgnorePatterns: Array<string>;
8888
testRegex: Array<string>;
89-
testResultsProcessor: string | null | undefined;
90-
testRunner: string | null | undefined;
89+
testResultsProcessor: null;
90+
testRunner: 'jasmine2';
9191
testURL: string;
92-
timers: 'real' | 'fake';
93-
transform:
94-
| {
95-
[key: string]: string;
96-
}
97-
| null
98-
| undefined;
92+
timers: 'real';
93+
transform: null;
9994
transformIgnorePatterns: Array<Glob>;
95+
unmockedModulePathPatterns: null;
96+
useStderr: false;
97+
verbose: null;
98+
watch: false;
10099
watchPathIgnorePatterns: Array<string>;
101-
useStderr: boolean;
102-
verbose: boolean | null | undefined;
103-
watch: boolean;
104-
watchman: boolean;
100+
watchman: true;
105101
};
106102

107103
export type InitialOptions = {

0 commit comments

Comments
 (0)