-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Viem matchers first iteration #6574
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
hardhatTotal size of the bundle: List of dependencies (sorted by size)
|
…-matchers-first-iteration
Update the `@nomicfoundation/hardhat-viem-matchers` package versions to match the most recent release.
v-next/hardhat-viem-matchers/src/internal/matchers/balances-have-changed.ts
Show resolved
Hide resolved
…-matchers-first-iteration
…ation/hardhat into viem-matchers-first-iteration
v-next/hardhat-viem-matchers/src/internal/matchers/revert/core-revert.ts
Outdated
Show resolved
Hide resolved
v-next/hardhat-viem-matchers/src/internal/matchers/revert/core-revert-with-custom-error.ts
Outdated
Show resolved
Hide resolved
v-next/hardhat-viem-matchers/src/internal/matchers/revert/core-revert-with-custom-error.ts
Outdated
Show resolved
Hide resolved
v-next/hardhat-viem-matchers/test/internal/matchers/emit/emit-with-args.ts
Show resolved
Hide resolved
v-next/hardhat-viem-matchers/src/internal/matchers/emit/emit-with-args.ts
Outdated
Show resolved
Hide resolved
…ation/hardhat into viem-matchers-first-iteration
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work. Lets get this merged!
Parent issue
POC for the
viem matchers
.Decision to be taken for POC - requires input
Note
chai-matchers
plugin. This is intentional, we first need to finalize the implementation approach we want to take with these matchers.I've included test scenarios that cover basic cases, mainly to provide a rough idea of how the matchers are intended to be used.
How the matchers object is implemented (pseudocode):
Follow up work
chai-matchers
, add tests to check that types are correctly handled when contracts are compiled/not compiled, group similar tests in same fileassertHardhatInvariant
usage in the code by leveraging Viem typesadd a readme when the matchers are finalized