Skip to content

Commit

Permalink
chore: fix build (#5959)
Browse files Browse the repository at this point in the history
  • Loading branch information
CristiCanizales authored Nov 22, 2024
1 parent 3155c29 commit 891f951
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import {
CliCommandExecution,
CliCommandExecutor,
CommandOutput,
SfCommandBuilder,
TelemetryService,
workspaceUtils
} from '../../../../src';
Expand All @@ -31,6 +30,12 @@ describe('UserService', () => {
let getRootWorkspacePathSpy: jest.SpyInstance;

beforeEach(() => {
cliCommandExecution = {
processExitCode: Promise.resolve(0),
processError: Promise.resolve(undefined),

Check failure on line 35 in packages/salesforcedx-utils-vscode/test/jest/services/source-tracking/userService.test.ts

View workflow job for this annotation

GitHub Actions / nightly-build-main / unit-tests / linux-unit-tests / linux-unit-tests

Variable 'cliCommandExecution' is used before being assigned.

Check failure on line 35 in packages/salesforcedx-utils-vscode/test/jest/services/source-tracking/userService.test.ts

View workflow job for this annotation

GitHub Actions / nightly-build-main / build-all / build-all

Variable 'cliCommandExecution' is used before being assigned.

Check failure on line 35 in packages/salesforcedx-utils-vscode/test/jest/services/source-tracking/userService.test.ts

View workflow job for this annotation

GitHub Actions / nightly-build-main / unit-tests / windows-unit-tests / windows-unit-tests

Variable 'cliCommandExecution' is used before being assigned.

Check failure on line 35 in packages/salesforcedx-utils-vscode/test/jest/services/source-tracking/userService.test.ts

View workflow job for this annotation

GitHub Actions / nightly-build-main / build-all / build-all

Variable 'cliCommandExecution' is used before being assigned.

Check failure on line 35 in packages/salesforcedx-utils-vscode/test/jest/services/source-tracking/userService.test.ts

View workflow job for this annotation

GitHub Actions / nightly-build-main / unit-tests / linux-unit-tests / linux-unit-tests

Variable 'cliCommandExecution' is used before being assigned.

Check failure on line 35 in packages/salesforcedx-utils-vscode/test/jest/services/source-tracking/userService.test.ts

View workflow job for this annotation

GitHub Actions / nightly-build-main / unit-tests / windows-unit-tests / windows-unit-tests

Variable 'cliCommandExecution' is used before being assigned.

Check failure on line 35 in packages/salesforcedx-utils-vscode/test/jest/services/source-tracking/userService.test.ts

View workflow job for this annotation

GitHub Actions / nightly-build-main / unit-tests / linux-unit-tests / linux-unit-tests

Variable 'cliCommandExecution' is used before being assigned.

Check failure on line 35 in packages/salesforcedx-utils-vscode/test/jest/services/source-tracking/userService.test.ts

View workflow job for this annotation

GitHub Actions / nightly-build-main / build-all / build-all

Variable 'cliCommandExecution' is used before being assigned.

Check failure on line 35 in packages/salesforcedx-utils-vscode/test/jest/services/source-tracking/userService.test.ts

View workflow job for this annotation

GitHub Actions / nightly-build-main / unit-tests / windows-unit-tests / windows-unit-tests

Variable 'cliCommandExecution' is used before being assigned.
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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 891f951

Please sign in to comment.