From 891f951492884d6d88c65c970918ffd8f3cd3bcd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cristina=20Ca=C3=B1izales?= <113132642+CristiCanizales@users.noreply.github.com> Date: Fri, 22 Nov 2024 17:28:35 -0300 Subject: [PATCH] chore: fix build (#5959) --- .../test/jest/services/source-tracking/userService.test.ts | 7 ++++++- .../commands/templates/lightningGenerateLwc.test.ts | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/salesforcedx-utils-vscode/test/jest/services/source-tracking/userService.test.ts b/packages/salesforcedx-utils-vscode/test/jest/services/source-tracking/userService.test.ts index fafa3a27e2..b8606ed8ff 100644 --- a/packages/salesforcedx-utils-vscode/test/jest/services/source-tracking/userService.test.ts +++ b/packages/salesforcedx-utils-vscode/test/jest/services/source-tracking/userService.test.ts @@ -10,7 +10,6 @@ import { CliCommandExecution, CliCommandExecutor, CommandOutput, - SfCommandBuilder, TelemetryService, workspaceUtils } from '../../../../src'; @@ -31,6 +30,12 @@ describe('UserService', () => { let getRootWorkspacePathSpy: jest.SpyInstance; beforeEach(() => { + cliCommandExecution = { + processExitCode: Promise.resolve(0), + processError: Promise.resolve(undefined), + processStdout: Promise.resolve(''), + processStderr: Promise.resolve('') + } as unknown as CliCommandExecution; getRootWorkspacePathSpy = jest.spyOn(workspaceUtils, 'getRootWorkspacePath').mockReturnValue('abc'); executionSpy = jest.spyOn(CliCommandExecutor.prototype, 'execute').mockReturnValue(cliCommandExecution); getCmdResultSpy = jest diff --git a/packages/salesforcedx-vscode-core/test/vscode-integration/commands/templates/lightningGenerateLwc.test.ts b/packages/salesforcedx-vscode-core/test/vscode-integration/commands/templates/lightningGenerateLwc.test.ts index d52a081b88..fc6c1c4974 100644 --- a/packages/salesforcedx-vscode-core/test/vscode-integration/commands/templates/lightningGenerateLwc.test.ts +++ b/packages/salesforcedx-vscode-core/test/vscode-integration/commands/templates/lightningGenerateLwc.test.ts @@ -31,6 +31,7 @@ describe('Generate Lightning Web Component', () => { let getConfiguration: SinonStub; beforeEach(() => { + settingStub = stub(); getInternalDevStub = stub(SalesforceCoreSettings.prototype, 'getInternalDev'); showInputBoxStub = stub(vscode.window, 'showInputBox'); quickPickStub = stub(vscode.window, 'showQuickPick');