Uh oh!
There was an error while loading. Please reload this page.
test(api/v2): ✅ Add UtilityController tests - #117
Conversation
There was a problem hiding this comment.
Pull request overview
Adds an initial Jest-based unit test suite for api-v2 by introducing tests for UtilityController and updating the project’s TypeScript/Jest configuration to support running tests from the test/ directory.
Changes:
- Add
UtilityControllerunit tests coveringgetHealth,getVersion, and deprecated route behavior. - Update Jest configuration to run tests from
apps/api-v2/testand mapsrc/*imports. - Update TypeScript config and dev dependencies/lockfile to support the testing setup.
Reviewed changes
Copilot reviewed 3 out of 4 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| yarn.lock | Updates lockfile for Jest-related packages and bumps @nestjs/testing. |
| apps/api-v2/tsconfig.json | Adds Jest/Node types and enables isolatedModules. |
| apps/api-v2/test/sections/utility/utility.controller.spec.ts | Introduces initial unit tests for UtilityController. |
| apps/api-v2/package.json | Updates dev deps (@nestjs/testing, @types/jest) and adjusts Jest rootDir + module mapping. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Add tests for the UtilityController as a start of making the api fully covered by automatic tests. This PR is mainly to setup the testing suite.