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
@@ -28,8 +28,8 @@ describe('Login Component', () => {
it('should have login button', () => {
render(Login);
const loginButton = screen.getByRole('button', { name: /login/i }) ||
screen.getByText(/login/i);
const loginButton = screen.getByRole('button', { name: /sign in/i }) ||
screen.getByText(/sign in/i);
expect(loginButton).toBeTruthy();
});