| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
This PR fixes an incorrect warning emitted by start-proxy when credentials use a PAT-like token with a configured username, and expands unit test coverage to validate the corrected behavior.
Changes:
Copilot reviewed 5 out of 5 changed files in this pull request and generated 4 comments.
Show a summary per file| File | Description |
|---|---|
| src/start-proxy.ts | Fixes the PAT warning condition to account for username presence for both token and password configs. |
| src/start-proxy.test.ts | Adds macro-based tests covering PAT warning behavior with/without usernames for token and password inputs. |
| src/testing-utils.ts | Enhances the recording logger with message-search helpers and adds a negative-log assertion helper. |
| lib/start-proxy-action.js | Generated output reflecting the src/start-proxy.ts change. |
| .vscode/tests.code-snippets | Adds an editor snippet (not directly related to the PR’s stated purpose). |
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM. Thanks for the thorough testing improvements.
Sorry, something went wrong.
| /** | ||
| * Asserts that `message` should not have been logged to `logger`. | ||
| */ | ||
| export function assertNotLogged( |
There was a problem hiding this comment.
Two minor things on this one:
Naming: doesn't follow the check... naming convention of checkExpectedLogMessages
Could be upgraded to (string | RegExp)[] since we already uses hasLoggedMessage under the hood
Sorry, something went wrong.
There was a problem hiding this comment.
To be honest, I just lazily picked the commits with the testing utils changes from #3508 since assertNotLogged was useful here and I figured that I probably wouldn't get around to polishing that PR more otherwise 😅
For 1: I am planning to move the names away from check... to assert.... I don't think I want to replace all occurrences of checkExpectedLogMessages now though as part of this PR. Personally, I am OK with the naming inconsistency, since we already have assert... for other assertions and the odd one out is checkExpectedLogMessages.
Sorry, something went wrong.
There was a problem hiding this comment.
Approving, but please see my thoughts on assertNotLogged
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
This was missed in #3563 and caught in #3577 (comment).
Risk assessment
For internal use only. Please select the risk level of this change:
Which use cases does this change impact?
Workflow types:
Products:
Environments:
How did/will you validate this change?
If something goes wrong after this change is released, what are the mitigation and rollback strategies?
How will you know if something goes wrong after this change is released?
Are there any special considerations for merging or releasing this change?
Merge / deployment checklist