fix: sdk context #4878
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
|