Skip to content

Commit

Permalink
--wip-- [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Feb 25, 2019
1 parent e062e3d commit 4ead970
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 54 deletions.
5 changes: 5 additions & 0 deletions packages/jest-config/src/Defaults.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,12 @@ const defaultOptions: Config.DefaultOptions = {
coverageThreshold: null,
cwd: process.cwd(),
dependencyExtractor: null,
detectLeaks: false,
detectOpenHandles: false,
displayName: null,
errorOnDeprecated: false,
expand: false,
extraGlobals: null,
filter: null,
forceCoverageMatch: [],
globalSetup: null,
Expand All @@ -44,6 +48,7 @@ const defaultOptions: Config.DefaultOptions = {
moduleFileExtensions: ['js', 'json', 'jsx', 'ts', 'tsx', 'node'],
moduleNameMapper: {},
modulePathIgnorePatterns: [],
name: null,
noStackTrace: false,
notify: false,
notifyMode: 'failure-change',
Expand Down
104 changes: 50 additions & 54 deletions packages/jest-types/src/Config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,84 +24,80 @@ export type ReporterConfig = [string, Object];
export type ConfigGlobals = Object;

export type DefaultOptions = {
automock: boolean;
automock: false;
bail: number;
browser: boolean;
cache: boolean;
browser: false;
cache: true;
cacheDirectory: Path;
changedFilesWithAncestor: boolean;
clearMocks: boolean;
collectCoverage: boolean;
collectCoverageFrom: Array<string> | null | undefined;
coverageDirectory: string | null | undefined;
changedFilesWithAncestor: false;
clearMocks: false;
collectCoverage: false;
collectCoverageFrom: null;
coverageDirectory: null;
coveragePathIgnorePatterns: Array<string>;
coverageReporters: Array<string>;
coverageThreshold:
| {
global: {
[key: string]: number;
};
}
| null
| undefined;
coverageThreshold: null;
cwd: Path;
dependencyExtractor: string | null | undefined;
errorOnDeprecated: boolean;
expand: boolean;
filter: Path | null | undefined;
dependencyExtractor: undefined;
detectLeaks: false;
detectOpenHandles: false;
displayName: null;
errorOnDeprecated: false;
expand: false;
extraGlobals: null;
filter: null;
forceCoverageMatch: Array<Glob>;
globals: ConfigGlobals;
globalSetup: string | null | undefined;
globalTeardown: string | null | undefined;
globalSetup: null;
globalTeardown: null;
haste: HasteConfig;
maxConcurrency: number;
moduleDirectories: Array<string>;
moduleFileExtensions: Array<string>;
moduleNameMapper: {
[key: string]: string;
};
moduleLoader: null;
moduleNameMapper: {[key: string]: Path};
modulePathIgnorePatterns: Array<string>;
noStackTrace: boolean;
notify: boolean;
notifyMode: string;
preset: string | null | undefined;
prettierPath: string | null | undefined;
projects: Array<string | ProjectConfig> | null | undefined;
resetMocks: boolean;
resetModules: boolean;
resolver: Path | null | undefined;
restoreMocks: boolean;
rootDir: Path | null | undefined;
roots: Array<Path> | null | undefined;
runner: string;
runTestsByPath: boolean;
modulePaths: null;
name: null;
noStackTrace: false;
notify: false;
notifyMode: NotifyMode;
preset: null;
prettierPath: 'prettier';
projects: null;
resetMocks: false;
resetModules: false;
resolver: null;
restoreMocks: false;
rootDir: null;
roots: Array<string>;
runTestsByPath: false;
runner: 'jest-runner';
setupFiles: Array<Path>;
setupFilesAfterEnv: Array<Path>;
skipFilter: boolean;
skipFilter: false;
skipNodeResolution: false;
snapshotResolver: null;
snapshotSerializers: Array<Path>;
testEnvironment: string;
testEnvironmentOptions: Object;
testFailureExitCode: string | number;
testLocationInResults: boolean;
testLocationInResults: false;
testMatch: Array<Glob>;
testPathIgnorePatterns: Array<string>;
testRegex: Array<string>;
testResultsProcessor: string | null | undefined;
testRunner: string | null | undefined;
testResultsProcessor: null;
testRunner: 'jasmine2';
testURL: string;
timers: 'real' | 'fake';
transform:
| {
[key: string]: string;
}
| null
| undefined;
timers: 'real';
transform: null;
transformIgnorePatterns: Array<Glob>;
unmockedModulePathPatterns: null;
useStderr: false;
verbose: null;
watch: false;
watchPathIgnorePatterns: Array<string>;
useStderr: boolean;
verbose: boolean | null | undefined;
watch: boolean;
watchman: boolean;
watchman: true;
};

export type InitialOptions = {
Expand Down

0 comments on commit 4ead970

Please sign in to comment.