Northeastern-Electric-Racing / Northeastern-Electric-Racing/FinishLine
Test Suite - Unmocked Tests for Create Material Endpoint
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 36
- Forks
- 9
- Avg merge
- 4d 21h
- Merged PRs (30d)
- 11
Description
Description
We are making tests in a new way that uses an actual database rather than mocking calls to prisma. You can run these tests by running yarn test:setup, then running yarn test (make sure to run yarn test:teardown whenever you're done). You can see examples of how to do these new tests in src/backend/tests/unmocked/
This ticket is to make tests of this new type for the create material endpoint
Acceptance Criteria
The mocked tests for this endpoint are recreated unmocked
Proposed Solution
Look at how other unmocked tests are writen. Put this in a bom tests file if it does not exist (not projects)
Mocks
No response
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the existing mocked tests for the create material endpoint and the examples in src/backend/tests/unmocked/. Run yarn test:setup before yarn test, and run yarn test:teardown afterward. Done means the endpoint's mocked tests have equivalent unmocked tests using the actual database, placed in the BOM tests area rather than projects.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- backend, database, testing
- Issue type
- Refactor
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100