SUMMARY
Perhaps related to #686, this works:
await expect(myContract.myFunction())
.to.be.reverted;
while
await expect(myContract.myFunction())
.to.be.revertedWithCustomError(myContract, "SomeError");
yields
AssertionError: Expected transaction to be reverted with custom error 'SomeError', but it didn't revert
although the transaction was reverted with the correct error (I checked the localnet explorer), so it just wasn't caught by the wrapper.
ACTUAL RESULTS
Exception is thrown that the tx wasn't reverted.
EXPECTED RESULTS
Tests should pass normally.
SUMMARY
Perhaps related to #686, this works:
while
yields
although the transaction was reverted with the correct error (I checked the localnet explorer), so it just wasn't caught by the wrapper.
ACTUAL RESULTS
Exception is thrown that the tx wasn't reverted.
EXPECTED RESULTS
Tests should pass normally.