hagopj13 / hagopj13/node-express-boilerplate
Incorrect docs route unit test
Open
- Dominant language
- JavaScript
- Stars
- 7.7k
- Forks
- 2.3k
- PR merge metrics
- No merged PRs in 30d
Description
The docs unit test ensures that the docs route is not available in production, but fails to properly change the environment to production. As the docs route is also unavailable in the test environment, the test passes. There should also be a test ensuring a 301 status in a development environment.
Contributor guide
Research direction
Locate the docs route unit test and inspect how its environment is configured. Ensure the production case explicitly uses the production environment, then add coverage for the development environment returning a 301 status; the relevant unit tests should pass in both cases.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- express, javascript, node.js
- Domain
- backend-api-design, testing-qa
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100