Files
xiaoxia-saas/apps/web/src/test/setup.ts
T
Xiaoxia AI 2cda8dec39
Deploy / Deploy Staging (push) Failing after 9s
Deploy / Deploy Production (push) Has been skipped
Tests / test (push) Failing after 14s
Tests / lint (push) Failing after 15s
fix: connect API to tracker.db via SQLite repository
2026-06-17 13:21:38 +08:00

15 lines
298 B
TypeScript

/**
* 测试环境设置
*/
import { expect, afterEach } from 'vitest';
import { cleanup } from '@testing-library/react';
import matchers from '@testing-library/jest-dom/matchers';
// 扩展 Vitest 的 expect
expect.extend(matchers);
// 每次测试后清理
afterEach(() => {
cleanup();
});