test: add basic diagnostic tests to validate CI environment
Deploy Dashboard (Dev) / deploy-dev (push) Failing after 2m37s
Run Tests / Frontend Tests (push) Has been cancelled
Run Tests / Backend Tests (push) Has been cancelled
Run Tests / Test Summary (push) Has been cancelled

This commit is contained in:
Gan, Jimmy
2026-03-31 11:38:44 +08:00
parent c98db64f32
commit 01344e8b2d
2 changed files with 56 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
"""
Basic diagnostic tests to validate frontend test environment.
"""
import { describe, it, expect } from 'vitest';
describe('Basic Environment Tests', () => {
it('should run basic math', () => {
expect(1 + 1).toBe(2);
});
it('should have access to DOM APIs', () => {
expect(typeof document).toBe('object');
expect(typeof window).toBe('object');
});
it('should have localStorage mock', () => {
localStorage.setItem('test', 'value');
expect(localStorage.getItem('test')).toBe('value');
localStorage.removeItem('test');
});
});