☰
Debian Codegraph
@
4.9.2+~cs37.29.15-2
4.8.3+~cs12.2.0-1
4.10.0+~cs37.29.16-1
/
/
a11y-plugin
/
tests
/
config
/
vitest.setup.ts
☽
☼
a11y-plugin/tests/config/vitest.setup.ts
code
plain
raw
MIT
2020, Philipp Daun
debian/copyright
1
import { afterEach, vi } from 'vitest';
2
import { matchMedia, cleanupMedia } from 'mock-match-media';
3
4
window.matchMedia = matchMedia;
5
6
afterEach(() => {
7
document.body.innerHTML = '';
8
vi.clearAllMocks();
9
cleanupMedia();
10
});