Skip to content

Commit

Permalink
Suppress file check in one more place
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowspawn committed Dec 6, 2024
1 parent 9dfaf09 commit 5202eb3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/command.executableSubcommand.search.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,7 @@ describe('search for subcommand', () => {
test('when script arg then search for local script-sub.js, .ts, .tsx, .mpjs, .cjs', () => {
existsSpy.mockImplementation((path) => false);
const program = new commander.Command();
program._throwForMissingExecutable = () => {}; // suppress error, call mocked spawn
program.command('sub', 'executable description');
const scriptPath = path.resolve(gLocalDirectory, 'script');
program.parse(['node', scriptPath, 'sub']);
Expand Down

0 comments on commit 5202eb3

Please sign in to comment.