-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Use hardhat-test-utils
' functions
#5496
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
export async function assertRejectsWithHardhatError< | ||
ErrorDescriptorT extends ErrorDescriptor, | ||
>( | ||
f: (() => Promise<any>) | Promise<any>, | ||
op: (() => Promise<any>) | Promise<any>, | ||
descritor: ErrorDescriptorT, |
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.
oops, we missed this in the previous PR. There's a typo here, and it's also present in the other function.
8bdd711
to
250cd29
Compare
This PR adds new
eslint
rules to forbid the error-related assertions thatnode:assert/strict
has, and forces us to use our own instead.It also fixies all the new linter errors, so it's a large and repetitive PR.