mirror of
https://github.com/apricote/Listory.git
synced 2026-01-13 21:21:02 +00:00
12 lines
350 B
JavaScript
12 lines
350 B
JavaScript
|
|
import { expect, afterEach } from "vitest";
|
||
|
|
import { cleanup } from "@testing-library/react";
|
||
|
|
import matchers from "@testing-library/jest-dom/matchers";
|
||
|
|
|
||
|
|
// extends Vitest's expect method with methods from react-testing-library
|
||
|
|
expect.extend(matchers);
|
||
|
|
|
||
|
|
// runs a cleanup after each test case (e.g. clearing jsdom)
|
||
|
|
afterEach(() => {
|
||
|
|
cleanup();
|
||
|
|
});
|