MC Playground Toggle #1358
Annotations
3 errors and 1 warning
src/lib/util/serde.test.ts:
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
|
src/lib/components/History/history.test.ts:
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
|
unit-tests
Process completed with exit code 1.
|
unit-tests
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/
|