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:
@@ -22,7 +22,7 @@ Add comprehensive unit and integration test coverage to both the backend (FastAP
|
||||
|
||||
- [x] Backend test infrastructure is set up (conftest, fixtures, test DB)
|
||||
- [ ] Backend schemas and services have unit test coverage
|
||||
- [ ] Backend API endpoints have integration test coverage
|
||||
- [ ] Frontend test infrastructure is set up (Vitest, RTL)
|
||||
- [x] Backend API endpoints have integration test coverage
|
||||
- [x] Frontend test infrastructure is set up (Vitest, RTL)
|
||||
- [ ] Frontend utilities and hooks have unit test coverage
|
||||
- [ ] Frontend components have basic render/interaction tests
|
||||
Reference in New Issue
Block a user