diff --git a/src/extension.spec.ts b/src/extension.spec.ts index a2c00b7e..eeb910b3 100644 --- a/src/extension.spec.ts +++ b/src/extension.spec.ts @@ -24,9 +24,11 @@ import { ExtensionContext, AuthenticationSession, ProgressLocation, + configuration, } from '@podman-desktop/api'; import { authentication, commands } from '@podman-desktop/api'; import * as podmanCli from './podman-cli'; +import { exec } from 'child_process'; vi.mock('@podman-desktop/api', async () => { return { @@ -76,6 +78,16 @@ vi.mock('@podman-desktop/api', async () => { ProgressLocation: { TASK_WIDGET: 2, }, + process: { + exec: vi.fn(), + }, + configuration: { + getConfiguration: () => { + return { + get: vi.fn(), + }; + } + }, }; });