Northeastern-Electric-Racing / Northeastern-Electric-Racing/FinishLine

[Testing] - Write Unmocked Tests for Edit Link Type

Open
#2,448 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

back-end medium testing
Dominant language
TypeScript
Stars
36
Forks
9
Avg merge
4d 21h
Merged PRs (30d)
11

Description

Description

We want to ensure our endpoints communicate with our database correctly and handle all appropriate business logic. You can setup the testing environment by running yarn test:setup. Then you can run yarn test as many times as you wish. Once done you may run yarn test:teardown to shutdown the testing environment and be able to use the normal dev environment again.

Acceptance Criteria
  • Tests that force all exceptions to occur
  • Test that successfully invokes the function for the expected output.
Proposed Solution

Look at how unmocked tests are currently used. You may want to look at test.utils.ts to see how we create test projects and setup organizations.

Mocks

No response

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Review existing unmocked tests and test.utils.ts to understand how test projects and organizations are created. Run yarn test:setup, then yarn test while covering the Edit Link Type endpoint's exception paths and successful expected output. Done means both acceptance criteria pass; run yarn test:teardown afterward.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
backend-api-design, testing-qa
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.