@@ -6,6 +6,8 @@ import { createMockLogger } from "./loggerMock";
66import { createMockMemento } from "../mock-memento" ;
77import { testCredentialsWithStub } from "../factories/authentication" ;
88import { Credentials } from "../../src/common/authentication" ;
9+ import { ExtensionCommandManager } from "../../src/common/commands" ;
10+ import { createMockCommandManager } from "./commandsMock" ;
911
1012export function createMockApp ( {
1113 extensionPath = "/mock/extension/path" ,
@@ -15,6 +17,7 @@ export function createMockApp({
1517 executeCommand = jest . fn ( ( ) => Promise . resolve ( ) ) ,
1618 workspaceState = createMockMemento ( ) ,
1719 credentials = testCredentialsWithStub ( ) ,
20+ commandManager = createMockCommandManager ( ) ,
1821} : {
1922 extensionPath ?: string ;
2023 workspaceStoragePath ?: string ;
@@ -23,6 +26,7 @@ export function createMockApp({
2326 executeCommand ?: ( ) => Promise < void > ;
2427 workspaceState ?: Memento ;
2528 credentials ?: Credentials ;
29+ commandManager ?: ExtensionCommandManager ;
2630} ) : App {
2731 return {
2832 mode : AppMode . Test ,
@@ -35,6 +39,7 @@ export function createMockApp({
3539 createEventEmitter,
3640 executeCommand,
3741 credentials,
42+ commandManager,
3843 } ;
3944}
4045
0 commit comments