(react) add jest-dom dependency

We want to be able to use convenience methods like "toBeInTheDocument".
This commit is contained in:
Nathan Vasse
2023-04-14 16:37:30 +02:00
committed by NathanVss
parent 74abf9b8a7
commit 559c1e2cb7
3 changed files with 185 additions and 16 deletions

View File

@@ -70,8 +70,10 @@
"@storybook/storybook-deployer": "2.8.16",
"@storybook/testing-library": "0.0.13",
"@testing-library/dom": "9.2.0",
"@testing-library/jest-dom": "5.16.5",
"@testing-library/react": "14.0.0",
"@testing-library/user-event": "14.4.3",
"@types/jest": "29.5.0",
"@types/react": "18.0.31",
"@types/react-dom": "18.0.11",
"@vitejs/plugin-react": "3.1.0",

View File

@@ -1,3 +1,4 @@
import "@testing-library/jest-dom";
import createFetchMock from "vitest-fetch-mock";
import { vi } from "vitest";