Set up frontend test infrastructure
Install @testing-library/react, @testing-library/jest-dom, @testing-library/user-event, and jsdom. Configure Vitest with globals, jsdom environment, and a setup file importing jest-dom matchers. Add a custom render helper wrapping components with QueryClientProvider and MemoryRouter. Exclude e2e/ from vitest. Smoke test covers formatEvolutionMethod. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -29,10 +29,14 @@
|
||||
"@axe-core/playwright": "4.11.1",
|
||||
"@playwright/test": "1.58.2",
|
||||
"@tailwindcss/vite": "4.1.18",
|
||||
"@testing-library/jest-dom": "^6.9.1",
|
||||
"@testing-library/react": "^16.3.2",
|
||||
"@testing-library/user-event": "^14.6.1",
|
||||
"@types/node": "24.10.10",
|
||||
"@types/react": "19.2.11",
|
||||
"@types/react-dom": "19.2.3",
|
||||
"@vitejs/plugin-react": "5.1.3",
|
||||
"jsdom": "^28.1.0",
|
||||
"oxfmt": "0.33.0",
|
||||
"oxlint": "1.48.0",
|
||||
"tailwindcss": "4.1.18",
|
||||
|
||||
Reference in New Issue
Block a user