fix: implement symbolic links #1683
Annotations
30 errors
src/managers/gitManager.spec.ts > cloneRepository > clone and checkout if ref is specified:
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
|
src/managers/gitManager.spec.ts > cloneRepository > clone and checkout if ref is NOT specified:
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
|
src/managers/gitManager.spec.ts > processCheckout > first install no existing folder:
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
|
src/managers/gitManager.spec.ts > processCheckout > existing folder not-updatable and user reset:
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
|
src/managers/gitManager.spec.ts > isRepositoryUpToDate > no remote defined:
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
|
src/managers/gitManager.spec.ts > isRepositoryUpToDate > detached invalid without ref:
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
|
src/managers/gitManager.spec.ts > isRepositoryUpToDate > detached invalid with invalid ref:
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
|
src/managers/gitManager.spec.ts > isRepositoryUpToDate > detached invalid with expected ref:
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
|
src/managers/gitManager.spec.ts > isRepositoryUpToDate > detached with expected ref and modified files:
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
|
src/managers/gitManager.spec.ts > isRepositoryUpToDate > detached with expected ref and deleted files:
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
|
src/managers/gitManager.spec.ts > cloneRepository > clone and checkout if ref is specified:
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
|
src/managers/gitManager.spec.ts > cloneRepository > clone and checkout if ref is NOT specified:
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
|
src/managers/gitManager.spec.ts > processCheckout > first install no existing folder:
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
|
src/managers/gitManager.spec.ts > processCheckout > existing folder not-updatable and user reset:
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
|
src/managers/gitManager.spec.ts > isRepositoryUpToDate > no remote defined:
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
|
src/managers/gitManager.spec.ts > isRepositoryUpToDate > detached invalid without ref:
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
|
src/managers/gitManager.spec.ts > isRepositoryUpToDate > detached invalid with invalid ref:
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
|
src/managers/gitManager.spec.ts > isRepositoryUpToDate > detached invalid with expected ref:
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
|
src/managers/gitManager.spec.ts > isRepositoryUpToDate > detached with expected ref and modified files:
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
|
src/managers/gitManager.spec.ts > isRepositoryUpToDate > detached with expected ref and deleted files:
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
|
src/managers/gitManager.spec.ts > cloneRepository > clone and checkout if ref is specified:
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
|
src/managers/gitManager.spec.ts > cloneRepository > clone and checkout if ref is NOT specified:
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
|
src/managers/gitManager.spec.ts > processCheckout > first install no existing folder:
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
|
src/managers/gitManager.spec.ts > processCheckout > existing folder not-updatable and user reset:
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
|
src/managers/gitManager.spec.ts > isRepositoryUpToDate > no remote defined:
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
|
src/managers/gitManager.spec.ts > isRepositoryUpToDate > detached invalid without ref:
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
|
src/managers/gitManager.spec.ts > isRepositoryUpToDate > detached invalid with invalid ref:
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
|
src/managers/gitManager.spec.ts > isRepositoryUpToDate > detached invalid with expected ref:
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
|
src/managers/gitManager.spec.ts > isRepositoryUpToDate > detached with expected ref and modified files:
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
|
src/managers/gitManager.spec.ts > isRepositoryUpToDate > detached with expected ref and deleted files:
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
|