mirror of
https://github.com/apricote/Listory.git
synced 2026-01-13 21:21:02 +00:00
build(frontend): replace create-react-app with vite (#272)
This commit is contained in:
parent
8721fd101d
commit
eb8fe11be6
11 changed files with 4700 additions and 22943 deletions
11
frontend/tests/setup.js
Normal file
11
frontend/tests/setup.js
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
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();
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue