Skip to content

Commit 0b61468

Browse files
committed
kill off maybe maybe type annotations
1 parent 150fd9c commit 0b61468

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

packages/jest-config/src/valid_config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export default ({
2020
browser: false,
2121
cache: true,
2222
cacheDirectory: '/tmp/user/jest',
23-
changedFilesSinceCommit: null,
23+
changedFilesSinceCommit: '',
2424
changedFilesWithAncestor: false,
2525
clearMocks: false,
2626
collectCoverage: true,

test_utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import type {GlobalConfig, ProjectConfig} from 'types/Config';
1313

1414
const DEFAULT_GLOBAL_CONFIG: GlobalConfig = {
1515
bail: false,
16-
changedFilesSinceCommit: null,
16+
changedFilesSinceCommit: '',
1717
changedFilesWithAncestor: false,
1818
collectCoverage: false,
1919
collectCoverageFrom: [],

types/ChangedFiles.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import type {Path} from 'types/Config';
1212
export type Options = {|
1313
lastCommit?: boolean,
1414
withAncestor?: boolean,
15-
sinceCommit?: ?string,
15+
sinceCommit?: string,
1616
|};
1717

1818
export type ChangedFiles = Set<Path>;

types/Config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export type InitialOptions = {
7676
cacheDirectory?: Path,
7777
clearMocks?: boolean,
7878
changedFilesWithAncestor?: boolean,
79-
changedFilesSinceCommit?: ?string,
79+
changedFilesSinceCommit?: string,
8080
collectCoverage?: boolean,
8181
collectCoverageFrom?: Array<Glob>,
8282
collectCoverageOnlyFrom?: {[key: string]: boolean},
@@ -159,7 +159,7 @@ export type SnapshotUpdateState = 'all' | 'new' | 'none';
159159
export type GlobalConfig = {|
160160
bail: boolean,
161161
changedFilesWithAncestor: boolean,
162-
changedFilesSinceCommit: ?string,
162+
changedFilesSinceCommit?: string,
163163
collectCoverage: boolean,
164164
collectCoverageFrom: Array<Glob>,
165165
collectCoverageOnlyFrom: ?{[key: string]: boolean},

0 commit comments

Comments
 (0)