Calendar/test/setup.ts
Janus C. H. Knudsen a624394ffb Improves all-day event layout calculation
Refactors all-day event rendering to use a layout engine
for overlap detection and positioning, ensuring events
are placed in available rows and columns.

Removes deprecated method and adds unit tests.
2025-09-25 23:38:17 +02:00

13 lines
No EOL
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
}
});