Skip to content

fix: unused ts expressions in tests#23621

Merged
spalladino merged 1 commit into
merge-train/fairiesfrom
nv/fix-unused-expr
May 28, 2026
Merged

fix: unused ts expressions in tests#23621
spalladino merged 1 commit into
merge-train/fairiesfrom
nv/fix-unused-expr

Conversation

@nventuro

Copy link
Copy Markdown
Contributor

Many tests were not invoking the jest matchers (e.g. expect(foo).toEqual; instead of expect(foo).toEqual();). I added the eslint rule that forbids this while allowing some patterns we use (like shortcuts in the form if do_logs && logger.log('foo');. The test fixes should be correct, but it is likely worth going over them in case the finding of this surface being untested is relevant.

@nventuro nventuro requested a review from spalladino May 28, 2026 14:05

@spalladino spalladino left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Damn, good catch

@spalladino spalladino enabled auto-merge (squash) May 28, 2026 14:19
@spalladino spalladino merged commit 7ede19d into merge-train/fairies May 28, 2026
14 checks passed
@spalladino spalladino deleted the nv/fix-unused-expr branch May 28, 2026 14:31
danielntmd pushed a commit to danielntmd/aztec-packages that referenced this pull request Jun 4, 2026
BEGIN_COMMIT_OVERRIDE
refactor(aztec-nr): use constructor methods for MessageDelivery variants
(AztecProtocol#23596)
docs: update testing_contracts.md for two-crate aztec new layout
(AztecProtocol#23617)
fix: drop usage of include and indexof on types that support equals
(AztecProtocol#23595)
fix: unused ts expressions in tests (AztecProtocol#23621)
feat(aztec-nr): Get tagging index for constrained delivery  (AztecProtocol#23359)
feat!: demote auth registry to non-protocol contract (AztecProtocol#23106)
feat(aztec-nr)!: embed BoundedVec max length in validation requests
(AztecProtocol#23622)
fix: regenerate standard contract addresses after auth registry demotion
(AztecProtocol#23640)
feat(aztec-nr): encrypt handshake log for indistinguishability (AztecProtocol#23638)
feat!: demote public_checks to non-protocol contract (AztecProtocol#23217)
fix: noir precommit re-staging inside worktrees (AztecProtocol#23628)
END_COMMIT_OVERRIDE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants