Added Documents Feature
This commit is contained in:
@@ -28,7 +28,7 @@ make test
|
||||
```
|
||||
|
||||
This executes:
|
||||
- Backend: `docker compose exec backend npm test`
|
||||
- Backend: `docker compose exec admin-backend npm test`
|
||||
- Frontend: runs Jest in a disposable Node container mounting `./frontend`
|
||||
|
||||
### Feature-Specific Testing
|
||||
@@ -134,7 +134,8 @@ make test-frontend
|
||||
npm test -- features/vehicles --coverage
|
||||
|
||||
# View coverage report
|
||||
open coverage/lcov-report/index.html
|
||||
# Inside the container, open using your OS tooling,
|
||||
# or copy the report out of the container as needed
|
||||
```
|
||||
|
||||
### Container Management
|
||||
@@ -153,7 +154,7 @@ make clean && make start
|
||||
|
||||
### Jest Configuration
|
||||
- Backend: `backend/jest.config.js`
|
||||
- Frontend: `frontend/jest.config.cjs`
|
||||
- Frontend: `frontend/jest.config.ts`
|
||||
- React + TypeScript via `ts-jest`
|
||||
- jsdom environment
|
||||
- Testing Library setup in `frontend/setupTests.ts`
|
||||
|
||||
Reference in New Issue
Block a user