Skip to content

Commit

Permalink
fix: skipApiVersionCheck flag deprecation warning (#416)
Browse files Browse the repository at this point in the history
  • Loading branch information
pozil authored Jan 7, 2025
1 parent efa71af commit bdf5497
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/options/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ const testOptions = {
skipApiVersionCheck: {
description: 'Deprecated: this noop flag is kept for backward compatibility',
type: 'boolean',
default: false,
},
};

Expand Down
2 changes: 1 addition & 1 deletion src/utils/test-runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function getJestArgs(argv) {
}

async function testRunner(argv) {
if (!argv.skipApiVersionCheck) {
if (argv.skipApiVersionCheck !== undefined) {
warn(
'The --skipApiVersionCheck flag is deprecated and will be removed in future versions.',
);
Expand Down
2 changes: 1 addition & 1 deletion tests/__snapshots__/help.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Options:
(https://jestjs.io/docs/en/troubleshooting)
[boolean] [default: false]
--skipApiVersionCheck Deprecated: this noop flag is kept for backward
compatibility [boolean] [default: false]
compatibility [boolean]
--help Show help [boolean]
Examples:
Expand Down

0 comments on commit bdf5497

Please sign in to comment.