fix: upload model on podman machine on WSL to speed loading #647
Annotations
4 errors
Run unit tests:
packages/backend/src/models/uploader.ts#L30
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
}
})
❯ Uploader.<instance_members_initializer> src/models/uploader.ts:30:35
❯ new Uploader src/models/uploader.ts:34:3
❯ ModelsManager.uploadModelToPodmanMachine src/managers/modelsManager.ts:268:22
❯ ApplicationManager.pullApplication src/managers/applicationManager.ts:145:44
❯ src/managers/applicationManager.spec.ts:274:5
|
Run unit tests:
packages/backend/src/models/uploader.ts#L30
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
}
})
❯ Uploader.<instance_members_initializer> src/models/uploader.ts:30:35
❯ new Uploader src/models/uploader.ts:34:3
❯ ModelsManager.uploadModelToPodmanMachine src/managers/modelsManager.ts:268:22
❯ ApplicationManager.pullApplication src/managers/applicationManager.ts:145:44
❯ src/managers/applicationManager.spec.ts:330:5
|
Run unit tests:
packages/backend/src/models/uploader.ts#L30
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
}
})
❯ Uploader.<instance_members_initializer> src/models/uploader.ts:30:35
❯ new Uploader src/models/uploader.ts:34:3
❯ ModelsManager.uploadModelToPodmanMachine src/managers/modelsManager.ts:268:22
❯ ApplicationManager.pullApplication src/managers/applicationManager.ts:145:44
❯ src/managers/applicationManager.spec.ts:358:5
|
Run unit tests
Process completed with exit code 1.
|
The logs for this run have expired and are no longer available.
Loading