feat: Improved AuthProvider #199
Annotations
3 errors and 1 warning
Run npm run test:
source/lib/auth.ts#L13
Error: [vitest] No "default" export is defined on the "keytar" 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("keytar"), async (importOriginal) => {
const actual = await importOriginal()
return {
...actual,
// your mocked methods
}
})
❯ source/lib/auth.ts:13:58
❯ source/components/AuthProvider.tsx:3:31
|
Run npm run test:
source/lib/auth.ts#L13
Error: [vitest] No "default" export is defined on the "keytar" 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("keytar"), async (importOriginal) => {
const actual = await importOriginal()
return {
...actual,
// your mocked methods
}
})
❯ source/lib/auth.ts:13:58
❯ source/components/AuthProvider.tsx:3:31
|
Run npm run test
Process completed with exit code 1.
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Loading