Files
Gan, Jimmy 2112d84051
Deploy Dashboard (Dev) / deploy-dev (push) Failing after 1m22s
Run Tests / Backend Tests (push) Failing after 1m10s
Run Tests / Frontend Tests (push) Failing after 6m4s
Run Tests / Test Summary (push) Failing after 41s
fix: correct import paths and syntax in frontend tests
2026-03-31 19:05:13 +08:00

22 lines
569 B
JavaScript

/**
* 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');
});
});