Repository navigation
ci: fix dependency audit and polling tests - #5149
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f0f8f85402
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| setup() | ||
|
|
||
| vi.spyOn(getBlock, 'getBlock').mockRejectedValueOnce(new Error('foo')) | ||
| vi.spyOn(getBlock, 'getBlock').mockRejectedValue(new Error('foo')) |
There was a problem hiding this comment.
Replace the persistent
getBlock mock
This change makes the module-wide vi.spyOn persistent for the entire test, so unexpected repeated or in-flight getBlock calls are also forced to fail and the test can pass without exercising an actual provider failure. Rework the scenario against the configured chain or an ephemeral server; the repository explicitly forbids vi.spyOn and requires tests to verify real observable behavior.
AGENTS.md reference: AGENTS.md:L149-L152
Useful? React with 👍 / 👎.
| const blockNumber = await getBlockNumber.getBlockNumber(client, { | ||
| cacheTime: 0, | ||
| }) |
There was a problem hiding this comment.
Import
getBlockNumber through the public entrypoint
The new setup call invokes the public getBlockNumber action through its relative implementation module, coupling this public-surface test to the source layout rather than validating the exported API. Import a separately aliased setup helper from viem/actions or another owning package entrypoint, as required for public APIs in tests.
AGENTS.md reference: AGENTS.md:L180-L185
Useful? React with 👍 / 👎.
Update
ip-addressandundicito patched releases and stabilize block-watcher polling and replacement-error tests, fixing dependency audit failures and test-order timing failures inmainCI.