MC Playground Toggle #1358
Annotations
3 errors and 1 warning
Lint & Test:
src/lib/util/util.ts#L30
Error: [vitest] No "dev" 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(import("$app/environment"), async (importOriginal) => {
const actual = await importOriginal()
return {
...actual,
// your mocked methods
}
})
❯ src/lib/util/util.ts:30:26
❯ src/lib/util/state.ts:7:31
|
Lint & Test:
src/lib/util/util.ts#L30
Error: [vitest] No "dev" 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(import("$app/environment"), async (importOriginal) => {
const actual = await importOriginal()
return {
...actual,
// your mocked methods
}
})
❯ src/lib/util/util.ts:30:26
❯ src/lib/util/state.ts:7:31
|
Lint & Test
Process completed with exit code 1.
|
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/cache@v3, actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Loading