Skip to content

fix: sdk context

fix: sdk context #4878

Triggered via pull request December 12, 2024 11:25
Status Failure
Total duration 1m 47s
Artifacts

tests.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 1 warning
tests/unit/components/code.test.ts: src/lib/stores/sdk.ts#L37
Error: [vitest] No "building" export is defined on the "$app/environment" 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("$app/environment", async (importOriginal) => { const actual = await importOriginal() return { ...actual, // your mocked methods } }) ❯ getApiEndpoint src/lib/stores/sdk.ts:37:9 ❯ src/lib/stores/sdk.ts:61:18 ❯ src/lib/elements/flag.svelte:5:31
tests/unit/components/copy.test.ts: src/lib/stores/sdk.ts#L37
Error: [vitest] No "building" export is defined on the "$app/environment" 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("$app/environment", async (importOriginal) => { const actual = await importOriginal() return { ...actual, // your mocked methods } }) ❯ getApiEndpoint src/lib/stores/sdk.ts:37:9 ❯ src/lib/stores/sdk.ts:61:18 ❯ src/lib/elements/flag.svelte:5:31
tests/unit/components/copyInput.test.ts: src/lib/stores/sdk.ts#L37
Error: [vitest] No "building" export is defined on the "$app/environment" 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("$app/environment", async (importOriginal) => { const actual = await importOriginal() return { ...actual, // your mocked methods } }) ❯ getApiEndpoint src/lib/stores/sdk.ts:37:9 ❯ src/lib/stores/sdk.ts:61:18 ❯ src/lib/elements/flag.svelte:5:31
tests/unit/components/dropList.test.ts: src/lib/stores/sdk.ts#L37
Error: [vitest] No "building" export is defined on the "$app/environment" 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("$app/environment", async (importOriginal) => { const actual = await importOriginal() return { ...actual, // your mocked methods } }) ❯ getApiEndpoint src/lib/stores/sdk.ts:37:9 ❯ src/lib/stores/sdk.ts:61:18 ❯ src/lib/elements/flag.svelte:5:31
tests/unit/components/dropTabsItem.test.ts: src/lib/stores/sdk.ts#L37
Error: [vitest] No "building" export is defined on the "$app/environment" 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("$app/environment", async (importOriginal) => { const actual = await importOriginal() return { ...actual, // your mocked methods } }) ❯ getApiEndpoint src/lib/stores/sdk.ts:37:9 ❯ src/lib/stores/sdk.ts:61:18 ❯ src/lib/elements/flag.svelte:5:31
tests/unit/components/heading.test.ts: src/lib/stores/sdk.ts#L37
Error: [vitest] No "building" export is defined on the "$app/environment" 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("$app/environment", async (importOriginal) => { const actual = await importOriginal() return { ...actual, // your mocked methods } }) ❯ getApiEndpoint src/lib/stores/sdk.ts:37:9 ❯ src/lib/stores/sdk.ts:61:18 ❯ src/lib/elements/flag.svelte:5:31
tests/unit/components/modal.test.ts: src/lib/stores/sdk.ts#L37
Error: [vitest] No "building" export is defined on the "$app/environment" 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("$app/environment", async (importOriginal) => { const actual = await importOriginal() return { ...actual, // your mocked methods } }) ❯ getApiEndpoint src/lib/stores/sdk.ts:37:9 ❯ src/lib/stores/sdk.ts:61:18 ❯ src/lib/elements/flag.svelte:5:31
tests/unit/components/paginationInline.test.ts: src/lib/stores/sdk.ts#L37
Error: [vitest] No "building" export is defined on the "$app/environment" 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("$app/environment", async (importOriginal) => { const actual = await importOriginal() return { ...actual, // your mocked methods } }) ❯ getApiEndpoint src/lib/stores/sdk.ts:37:9 ❯ src/lib/stores/sdk.ts:61:18 ❯ src/lib/elements/flag.svelte:5:31
tests/unit/components/secret.test.ts: src/lib/stores/sdk.ts#L37
Error: [vitest] No "building" export is defined on the "$app/environment" 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("$app/environment", async (importOriginal) => { const actual = await importOriginal() return { ...actual, // your mocked methods } }) ❯ getApiEndpoint src/lib/stores/sdk.ts:37:9 ❯ src/lib/stores/sdk.ts:61:18 ❯ src/lib/elements/flag.svelte:5:31
tests/unit/components/tab.test.ts: src/lib/stores/sdk.ts#L37
Error: [vitest] No "building" export is defined on the "$app/environment" 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("$app/environment", async (importOriginal) => { const actual = await importOriginal() return { ...actual, // your mocked methods } }) ❯ getApiEndpoint src/lib/stores/sdk.ts:37:9 ❯ src/lib/stores/sdk.ts:61:18 ❯ src/lib/elements/flag.svelte:5:31
build
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636