feat: configure Vitest testing framework

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
Misaka
2026-03-01 12:12:33 +08:00
parent 3222e03cea
commit 9ac8707921
3 changed files with 34 additions and 1 deletions

15
tests/setup.ts Normal file
View File

@@ -0,0 +1,15 @@
import { beforeAll, afterAll } from 'vitest';
import dotenv from 'dotenv';
// Load environment variables
dotenv.config({ path: '.env' });
beforeAll(async () => {
// Global test setup
console.log('Test suite starting...');
});
afterAll(async () => {
// Global test teardown
console.log('Test suite completed.');
});