chore: setup vitest

This commit is contained in:
Ilia Mashkov
2026-01-06 12:21:33 +03:00
parent 3a3d6ec577
commit ffad76a4c0
8 changed files with 667 additions and 10 deletions

12
vitest.setup.component.ts Normal file
View File

@@ -0,0 +1,12 @@
import * as matchers from '@testing-library/jest-dom/matchers';
import { cleanup } from '@testing-library/svelte';
import {
afterEach,
expect,
} from 'vitest';
expect.extend(matchers);
afterEach(() => {
cleanup();
});