hackforla / hackforla/VRMS

Epic: Create true unit tests for backend routers

Open
#1,880 0 comments 0 reactions 0 assignees View on GitHub
complexity: medium Epic/Overview feature: Infrastructure role: Back End size: Epic
Dominant language
JavaScript
Stars
61
Forks
101
PR merge metrics
No merged PRs in 30d

Description

### Overview
Current tests for backend routers are creating MongoMemoryServers for each test suite and testing the functionality of more than just the routers themselves. We need to create new unit tests that isolate the functionality of the routers by mocking all other dependencies.

### Action Items
Check off these items once tests have been created for each route in each router.
- [x] #1881
- [x] #1885
- [x] #1886
- [x] #1887
- [x] #1888
- [ ] #1889
- [x] #1890
- [x] #1891
- [x] #1892
- [x] #1893
- [x] #1894
- [ ] #1895
- [ ] #1896

### Resources/Instructions
https://jestjs.io/docs/getting-started

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.