Feature/add vercel analytics #120
test.yml
on: pull_request
Hotfix Bypass
0s
Unit Tests
4m 16s
Annotations
2 errors
|
Unit Tests
Process completed with exit code 1.
|
|
src/lib/config/__tests__/siteUrlServer.spec.ts > getSiteUrl > throws a BuildError when running on Vercel:
src/lib/config/__tests__/siteUrlServer.spec.ts#L32
AssertionError: expected error to be instance of BuildError
- Expected:
[Function BuildError]
+ Received:
Error {
"message": "[vitest] No \"isGitHub\" export is defined on the \"../environmentServer\" mock. Did you forget to return it from \"vi.mock\"?
If you need to partially mock a module, you can use \"importOriginal\" helper inside:
",
"codeFrame": "vi.mock(import(\"../environmentServer\"), async (importOriginal) => {
const actual = await importOriginal()
return {
...actual,
// your mocked methods
}
})",
}
❯ src/lib/config/__tests__/siteUrlServer.spec.ts:32:30
|