test: add Vitest config and test utils

Made-with: Cursor
This commit is contained in:
Anton
2026-03-04 14:55:33 +03:00
parent 91b33f6f41
commit 85a3d274e6
4 changed files with 106 additions and 0 deletions

5
tests/setup.ts Normal file
View File

@@ -0,0 +1,5 @@
import { beforeAll, vi } from 'vitest';
beforeAll(() => {
vi.stubEnv('NODE_ENV', 'test');
});