Skip to content

fix: bad backport in checkpoint_builder.test.ts — wrong addBlock mock return type#21720

Open
AztecBot wants to merge 1 commit intobackport-to-v4-next-stagingfrom
claudebox/fix-checkpoint-builder-backport
Open

fix: bad backport in checkpoint_builder.test.ts — wrong addBlock mock return type#21720
AztecBot wants to merge 1 commit intobackport-to-v4-next-stagingfrom
claudebox/fix-checkpoint-builder-backport

Conversation

@AztecBot
Copy link
Collaborator

Summary

Fixes TS2353 build error on backport-to-v4-next-staging:

validator-client/src/checkpoint_builder.test.ts(145,65): error TS2353: Object literal may only specify known properties, and 'block' does not exist in type 'L2Block'.

The backport of PR #21520 introduced { block, timings: {} } as the mock return value for addBlock, matching the next branch API. But on v4-next, LightweightCheckpointBuilder.addBlock() returns Promise<L2Block> directly — no wrapper object.

Fixed by changing the mock from { block, timings: {} } to just block.

ClaudeBox log: https://claudebox.work/s/43f5e24bef7fdf69?run=1

@AztecBot AztecBot added ci-draft Run CI on draft PRs. claudebox Owned by claudebox. it can push to this PR. labels Mar 18, 2026
@alexghr alexghr changed the base branch from merge-train/spartan to backport-to-v4-next-staging March 18, 2026 09:33
@alexghr alexghr marked this pull request as ready for review March 18, 2026 09:50
@alexghr alexghr enabled auto-merge (squash) March 18, 2026 09:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-draft Run CI on draft PRs. claudebox Owned by claudebox. it can push to this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants