AstrBot-Desktop/src/test/setup.ts
YokiiroBW ceb7512bf2
一些检测仍在等待运行
ci / Portable quality checks (push) Waiting to run
ci / Windows Tauri build (push) Waiting to run
feat(desktop): complete Q9 chat and stability increment
2026-07-21 14:43:14 +08:00

13 行
289 B
TypeScript

import "@testing-library/jest-dom/vitest";
import { vi } from "vitest";
vi.mock("@tauri-apps/api/event", () => ({
listen: vi.fn(async () => () => undefined),
}));
import { cleanup } from "@testing-library/react";
import { afterEach } from "vitest";
afterEach(() => {
cleanup();
});