fix: implement symbolic links #1683
Annotations
10 errors
packages/backend/src/managers/gitManager.ts#L31
Error: [vitest] No "env" 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
}
})
❯ getFs src/managers/gitManager.ts:31:7
❯ GitManager.cloneRepository src/managers/gitManager.ts:73:11
❯ src/managers/gitManager.spec.ts:77:22
|
packages/backend/src/managers/gitManager.ts#L31
Error: [vitest] No "env" 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
}
})
❯ getFs src/managers/gitManager.ts:31:7
❯ GitManager.cloneRepository src/managers/gitManager.ts:73:11
❯ src/managers/gitManager.spec.ts:93:22
|
packages/backend/src/managers/gitManager.ts#L31
Error: [vitest] No "env" 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
}
})
❯ getFs src/managers/gitManager.ts:31:7
❯ GitManager.cloneRepository src/managers/gitManager.ts:73:11
❯ GitManager.processCheckout src/managers/gitManager.ts:202:16
❯ src/managers/gitManager.spec.ts:113:28
|
packages/backend/src/managers/gitManager.ts#L31
Error: [vitest] No "env" 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
}
})
❯ getFs src/managers/gitManager.ts:31:7
❯ GitManager.cloneRepository src/managers/gitManager.ts:73:11
❯ GitManager.processCheckout src/managers/gitManager.ts:202:16
❯ src/managers/gitManager.spec.ts:209:5
|
packages/backend/src/managers/gitManager.ts#L31
Error: [vitest] No "env" 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
}
})
❯ getFs src/managers/gitManager.ts:31:7
❯ GitManager.isRepositoryUpToDate src/managers/gitManager.ts:212:11
❯ src/managers/gitManager.spec.ts:252:37
|
packages/backend/src/managers/gitManager.ts#L31
Error: [vitest] No "env" 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
}
})
❯ getFs src/managers/gitManager.ts:31:7
❯ GitManager.isRepositoryUpToDate src/managers/gitManager.ts:212:11
❯ src/managers/gitManager.spec.ts:275:37
|
packages/backend/src/managers/gitManager.ts#L31
Error: [vitest] No "env" 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
}
})
❯ getFs src/managers/gitManager.ts:31:7
❯ GitManager.isRepositoryUpToDate src/managers/gitManager.ts:212:11
❯ src/managers/gitManager.spec.ts:297:37
|
packages/backend/src/managers/gitManager.ts#L31
Error: [vitest] No "env" 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
}
})
❯ getFs src/managers/gitManager.ts:31:7
❯ GitManager.isRepositoryUpToDate src/managers/gitManager.ts:212:11
❯ src/managers/gitManager.spec.ts:319:37
|
packages/backend/src/managers/gitManager.ts#L31
Error: [vitest] No "env" 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
}
})
❯ getFs src/managers/gitManager.ts:31:7
❯ GitManager.isRepositoryUpToDate src/managers/gitManager.ts:212:11
❯ src/managers/gitManager.spec.ts:343:37
|
packages/backend/src/managers/gitManager.ts#L31
Error: [vitest] No "env" 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
}
})
❯ getFs src/managers/gitManager.ts:31:7
❯ GitManager.isRepositoryUpToDate src/managers/gitManager.ts:212:11
❯ src/managers/gitManager.spec.ts:367:37
|
This job failed
Loading