Resolve "Add frontend vitest unit tests to ci and fix broken tests" - #397
Open
nick-greenwald wants to merge 3 commits into
Open
Resolve "Add frontend vitest unit tests to ci and fix broken tests"#397nick-greenwald wants to merge 3 commits into
nick-greenwald wants to merge 3 commits into
Conversation
| cache-dependency-path: anms-ui/package-lock.json | ||
| - name: Install dependencies | ||
| working-directory: anms-ui | ||
| run: npm ci |
| run: npm ci | ||
| - name: Run unit tests | ||
| working-directory: anms-ui | ||
| run: npx ng test --runner=vitest --no-watch |
| run: npm ci | ||
| - name: Run unit tests | ||
| working-directory: anms-ui | ||
| run: npx ng test --runner=vitest --no-watch |
…-fix-broken-tests
|
d-linko
reviewed
Aug 21, 2026
d-linko
left a comment
Contributor
There was a problem hiding this comment.
Attempting running the testing locally
got
Test Files 25 passed (25)
Tests 62 passed (62)
Errors 1 error
with the error HttpErrorResponse: Http failure response for http://localhost:3000/api/core/adms: 401 Unauthorized
and also in the logs im seeing
Failed to load ARIs HttpErrorResponse {
headers: HttpHeaders {
headers: undefined,
normalizedNames: Map(0) {},
lazyInit: [Function (anonymous)],
lazyUpdate: null
},
status: 401,
statusText: 'Unauthorized',
url: 'http://localhost:3000/api/build/ari/all',
ok: false,
type: undefined,
redirected: undefined,
responseType: undefined,
name: 'HttpErrorResponse',
message: 'Http failure response for http://localhost:3000/api/build/ari/all: 401 Unauthorized',
error: {
extra: null,
message: 'Unauthorized',
messageId: 'auth.unauthorized',
statusCode: 401,
traceID: ''
}
}
looks like its trying a different port is that different in the CI
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.




Fixes broken skeleton unit tests for various components and adds a unit test CI job.