diff --git a/packages/sanity/src/_internal/cli/actions/deploy/__tests__/undeployAction.test.ts b/packages/sanity/src/_internal/cli/actions/deploy/__tests__/undeployAction.test.ts index 008e04fcdb4..6ac9d616bf0 100644 --- a/packages/sanity/src/_internal/cli/actions/deploy/__tests__/undeployAction.test.ts +++ b/packages/sanity/src/_internal/cli/actions/deploy/__tests__/undeployAction.test.ts @@ -57,7 +57,12 @@ describe('undeployStudioAction', () => { it('does nothing if there is no user application', async () => { helpers.getUserApplication.mockResolvedValueOnce(null) - await undeployStudioAction({} as CliCommandArguments, mockContext) + await undeployStudioAction( + { + extOptions: {}, + } as CliCommandArguments, + mockContext, + ) expect(mockContext.output.print).toHaveBeenCalledWith( 'Your project has not been assigned a studio hostname', @@ -75,7 +80,12 @@ describe('undeployStudioAction', () => { true, ) // User confirms - await undeployStudioAction({} as CliCommandArguments, mockContext) + await undeployStudioAction( + { + extOptions: {}, + } as CliCommandArguments, + mockContext, + ) expect(mockContext.prompt.single).toHaveBeenCalledWith({ type: 'confirm', @@ -97,7 +107,12 @@ describe('undeployStudioAction', () => { false, ) // User cancels - await undeployStudioAction({} as CliCommandArguments, mockContext) + await undeployStudioAction( + { + extOptions: {}, + } as CliCommandArguments, + mockContext, + ) expect(mockContext.prompt.single).toHaveBeenCalledWith({ type: 'confirm', @@ -142,7 +157,12 @@ describe('undeployStudioAction', () => { ) // User confirms await expect( - undeployStudioAction({} as CliCommandArguments, mockContext), + undeployStudioAction( + { + extOptions: {}, + } as CliCommandArguments, + mockContext, + ), ).rejects.toThrow(errorMessage) expect(mockContext.output.spinner('').fail).toHaveBeenCalled()