This repository has been archived on 2026-09-04. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
swr/packages/react/testing-library.ts
T
2026-09-05 04:33:55 +05:30

10 lines
269 B
TypeScript

import { afterEach, expect } from "bun:test";
import { cleanup } from "@testing-library/react";
import * as matchers from "@testing-library/jest-dom/matchers";
expect.extend(matchers);
// Optional: cleans up `render` after each test
afterEach(() => {
cleanup();
});