mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-22 05:32:12 -03:00
17 lines
416 B
JavaScript
17 lines
416 B
JavaScript
import { afterEach, beforeEach } from 'vitest';
|
|
import { resetDom } from './utils/domFixtures.js';
|
|
|
|
beforeEach(() => {
|
|
// Ensure storage is clean before each test to avoid cross-test pollution
|
|
localStorage.clear();
|
|
sessionStorage.clear();
|
|
|
|
// Reset DOM state for modules that rely on body attributes
|
|
resetDom();
|
|
});
|
|
|
|
afterEach(() => {
|
|
// Clean any dynamically attached globals by tests
|
|
resetDom();
|
|
});
|