13 lines
326 B
TypeScript
13 lines
326 B
TypeScript
|
|
import { beforeEach } from 'vitest';
|
||
|
|
|
||
|
|
// Global test setup
|
||
|
|
beforeEach(() => {
|
||
|
|
// Clear DOM before each test
|
||
|
|
document.body.innerHTML = '';
|
||
|
|
document.head.innerHTML = '';
|
||
|
|
|
||
|
|
// Reset any global state
|
||
|
|
if (typeof window !== 'undefined') {
|
||
|
|
// Clear any event listeners or global variables if needed
|
||
|
|
}
|
||
|
|
});
|