diff --git a/src/cli.test.ts b/src/cli.test.ts index f7d53a89..92cdb456 100644 --- a/src/cli.test.ts +++ b/src/cli.test.ts @@ -285,6 +285,18 @@ describe('IDE validation', () => { }) }) + describe('--create-only flag handling', () => { + it('should skip validation when --create-only flag is used', async () => { + commandName = 'start' + commandOpts = { createOnly: true } + + await validateIdeForStartCommand(createMockCommand()) + + expect(mockExit).not.toHaveBeenCalled() + expect(mockIsIdeAvailable).not.toHaveBeenCalled() + }) + }) + describe('startIde setting handling', () => { it('should skip validation when startIde is false in settings', async () => { commandName = 'start' diff --git a/src/cli.ts b/src/cli.ts index b5a5cf2f..aad77994 100644 --- a/src/cli.ts +++ b/src/cli.ts @@ -325,10 +325,10 @@ export async function validateIdeForStartCommand(command: Command): Promise