test: подключить vitest и покрыть утилиты юнит-тестами

This commit is contained in:
kewldan
2026-07-13 01:09:33 +03:00
parent 758a645dff
commit 42788e842d
9 changed files with 527 additions and 3 deletions

10
vitest.config.ts Normal file
View File

@@ -0,0 +1,10 @@
import { defineConfig } from 'vitest/config';
// Kept separate from vite.config.ts so the app build config stays untouched;
// utility tests run in a plain node environment (no jsdom needed).
export default defineConfig({
test: {
include: ['src/**/*.test.{ts,tsx}'],
environment: 'node',
},
});