Repository navigation
test(rules): restore the real fetch when a graphql test stubs twice - #599
Merged
Merged
Conversation
The stub saved the previous stub as its original, so a test that stubbed twice left a fake fetch installed. The release gate runs one bun process over every file, so later suites got its 404 pages. Signed-off-by: Nik Cubrilovic <[email protected]>
|
Reviewed the one-file, test-only change. The fix looks correct and I found nothing that should block the merge.
Co-Authored-By: Claude Sonnet 5.5 [email protected] |
nc9
pushed a commit
that referenced
this pull request
Oct 9, 2026
* origin/main: feat(core-contracts): audit levels definition (quick, surface, full) (#602) test(rules): restore the real fetch when a graphql test stubs twice (#599) chore(release): v0.0.107 (#595) docs(changelog): release notes for v0.0.107 (#594) feat(rules): add GraphQL introspection and GET mutation probing rules (#593) fix(audit-engine): keep paid cloud prefetch results when the phase is abandoned (#582)
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.
The release quality gate for v0.0.107 failed: 96 fetch-based tests in other files got 404 pages. The graphql test helper's stubFetch saved the previous stub as its original, so a test that stubbed twice left a fake fetch installed for the rest of the single-process run. It now captures the real fetch once and always restores it.
Checked: the three graphql test files plus apps/cli/tests/fetchers/document-fetcher.test.ts fail 3 before and pass 57 after, in one bun invocation.
Test-only change. No docs or skill change needed.