Skip to content

Commit bdf5497

Browse files
authored
fix: skipApiVersionCheck flag deprecation warning (#416)
1 parent efa71af commit bdf5497

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

src/options/options.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ const testOptions = {
4141
skipApiVersionCheck: {
4242
description: 'Deprecated: this noop flag is kept for backward compatibility',
4343
type: 'boolean',
44-
default: false,
4544
},
4645
};
4746

src/utils/test-runner.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ function getJestArgs(argv) {
6161
}
6262

6363
async function testRunner(argv) {
64-
if (!argv.skipApiVersionCheck) {
64+
if (argv.skipApiVersionCheck !== undefined) {
6565
warn(
6666
'The --skipApiVersionCheck flag is deprecated and will be removed in future versions.',
6767
);

tests/__snapshots__/help.test.js.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Options:
1717
(https://jestjs.io/docs/en/troubleshooting)
1818
[boolean] [default: false]
1919
--skipApiVersionCheck Deprecated: this noop flag is kept for backward
20-
compatibility [boolean] [default: false]
20+
compatibility [boolean]
2121
--help Show help [boolean]
2222
2323
Examples:

0 commit comments

Comments
 (0)