test: add basic diagnostic tests to validate CI environment
This commit is contained in:
@@ -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');
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user