Initial testing framework
This commit is contained in:
1 parent
f9ff2d0c08
commit
165f7f8179
15 files changed
+9400
-60
No files matched your search
@@ -0,0 +1,10 @@
|
||||
import "@testing-library/jest-dom/vitest";
|
||||
import { afterAll, afterEach, beforeAll } from "vitest";
|
||||
import { server } from "./tests/msw/server";
|
||||
// expose Tailwind tokens to JSDOM (for design token checks)
|
||||
import "./app/tailwind.css";
|
||||
|
||||
// MSW for API integration tests (mock fetch)
|
||||
beforeAll(() => server.listen({ onUnhandledRequest: "bypass" }));
|
||||
afterEach(() => server.resetHandlers());
|
||||
afterAll(() => server.close());
|
||||
Reference in new issue
Block a user