fix: upgrade vitest to v3, compat fixes for Svelte 5 + jsdom
Deploy Dashboard (Dev) / Frontend Tests (push) Failing after 43s
Deploy Dashboard (Dev) / Deploy to Dev (push) Has been skipped
Deploy Dashboard (Dev) / Backend Tests (push) Failing after 4m0s

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
Gan, Jimmy
2026-05-07 12:37:15 +08:00
parent ba7e088ef5
commit d978842c37
6 changed files with 210 additions and 1102 deletions
@@ -373,6 +373,7 @@ describe('API Client - Error Handling', () => {
});
it('should handle network errors', async () => {
global.fetch.mockReset();
global.fetch.mockRejectedValueOnce(new Error('Network error'));
await expect(get('/test/endpoint')).rejects.toThrow('Network error');