Skip to content

Commit

Permalink
fix: add missing methods to api mock
Browse files Browse the repository at this point in the history
Signed-off-by: Denis Golovin <[email protected]>
  • Loading branch information
dgolovin committed Apr 22, 2024
1 parent 237de2e commit 3004d03
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/extension.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -76,6 +78,16 @@ vi.mock('@podman-desktop/api', async () => {
ProgressLocation: {
TASK_WIDGET: 2,
},
process: {
exec: vi.fn(),
},
configuration: {
getConfiguration: () => {
return {
get: vi.fn(),
};
}
},
};
});

Expand Down

0 comments on commit 3004d03

Please sign in to comment.