c0ba062460
Fix jsdom environment: add esbuild automatic JSX transform and afterEach cleanup to prevent DOM leakage between tests. Components: Badge (8), Button (13), FilterBar (5), EmptyState (8), ConfirmDialog (8), useSelection hook (15). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
8 lines
165 B
TypeScript
8 lines
165 B
TypeScript
import "@testing-library/jest-dom/vitest";
|
|
import { cleanup } from "@testing-library/react";
|
|
import { afterEach } from "vitest";
|
|
|
|
afterEach(() => {
|
|
cleanup();
|
|
});
|