feat(ContainerRegistry): start container event listener #712
Annotations
6 errors
src/studio.spec.ts > check activate :
packages/backend/src/registries/ContainerRegistry.ts#L33
Error: [vitest] No "EventEmitter" export is defined on the "@podman-desktop/api" mock. Did you forget to return it from "vi.mock"?
If you need to partially mock a module, you can use "importOriginal" helper inside:
vi.mock("@podman-desktop/api", async (importOriginal) => {
const actual = await importOriginal()
return {
...actual,
// your mocked methods
}
})
❯ ContainerRegistry.<instance_members_initializer> src/registries/ContainerRegistry.ts:33:66
❯ new ContainerRegistry src/registries/ContainerRegistry.ts:29:8
❯ Studio.activate src/studio.ts:110:31
❯ src/studio.spec.ts:91:3
|
linter, formatters and unit tests / ubuntu-22.04
Process completed with exit code 1.
|
src/studio.spec.ts > check activate :
packages/backend/src/registries/ContainerRegistry.ts#L33
Error: [vitest] No "EventEmitter" export is defined on the "@podman-desktop/api" mock. Did you forget to return it from "vi.mock"?
If you need to partially mock a module, you can use "importOriginal" helper inside:
vi.mock("@podman-desktop/api", async (importOriginal) => {
const actual = await importOriginal()
return {
...actual,
// your mocked methods
}
})
❯ ContainerRegistry.<instance_members_initializer> src/registries/ContainerRegistry.ts:33:66
❯ new ContainerRegistry src/registries/ContainerRegistry.ts:29:8
❯ Studio.activate src/studio.ts:110:31
❯ src/studio.spec.ts:91:3
|
linter, formatters and unit tests / macos-12
Process completed with exit code 1.
|
src/studio.spec.ts > check activate :
packages/backend/src/registries/ContainerRegistry.ts#L33
Error: [vitest] No "EventEmitter" export is defined on the "@podman-desktop/api" mock. Did you forget to return it from "vi.mock"?
If you need to partially mock a module, you can use "importOriginal" helper inside:
vi.mock("@podman-desktop/api", async (importOriginal) => {
const actual = await importOriginal()
return {
...actual,
// your mocked methods
}
})
❯ ContainerRegistry.<instance_members_initializer> src/registries/ContainerRegistry.ts:33:66
❯ new ContainerRegistry src/registries/ContainerRegistry.ts:29:8
❯ Studio.activate src/studio.ts:110:31
❯ src/studio.spec.ts:91:3
|
linter, formatters and unit tests / windows-2022
Process completed with exit code 1.
|