Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
camden11 committed Nov 22, 2024
1 parent 1400202 commit 7d994e1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion commands/__tests__/create.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ describe('commands/create', () => {
it('should support the correct options', () => {
createCommand.builder(yargs);

expect(yargs.option).toHaveBeenCalledTimes(1);
expect(yargs.option).toHaveBeenCalledTimes(2);
expect(yargs.option).toHaveBeenCalledWith(
'internal',
expect.objectContaining({ type: 'boolean', hidden: true })
Expand Down
1 change: 1 addition & 0 deletions commands/__tests__/doctor.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ describe('doctor', () => {

mockYargs = {
option: jest.fn(() => mockYargs),
version: jest.fn(() => mockYargs),
};
});

Expand Down
1 change: 1 addition & 0 deletions lib/commonOpts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const i18nKey = 'lib.commonOpts';

export function addGlobalOptions(yargs: Argv) {
yargs.version(false);

return yargs.option('debug', {
alias: 'd',
default: false,
Expand Down

0 comments on commit 7d994e1

Please sign in to comment.