test(api/v2): ✅ Add UtilityController tests#117
Merged
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. |
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>
Nudelsuppe42
approved these changes
May 20, 2026
kyanvde
added a commit
that referenced
this pull request
May 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.