Closed rslobodian closed 2 years ago
@rslobodian Thanks for the report, which version of Waffle do you have, and are you using Ganache or Hardhat with it?
I'm using waffle v3.4.4 with Hardhat and typescript
"devDependencies": {
"@nomiclabs/hardhat-waffle": "^2.0.3",
// ...
"@types/chai": "^4.3.1",
"@types/chai-as-promised": "^7.1.5",
"@types/mocha": "^9.1.1",
// ...
"chai": "^4.3.6",
"chai-as-promised": "^7.1.1",
// ...
"ethereum-waffle": "^3.4.4",
// ...
"hardhat": "^2.9.3",
// ...
}
@rslobodian We have an alpha version of Waffle 4, where we try to nail down those issues.
You might want to try out the @alpha
tag.
Do you guys have an ETA on when the RC of v4 will come out? I'd prefer not to use the alpha.
Do you guys have an ETA on when the RC of v4 will come out? I'd prefer not to use the alpha.
Don't want to make promises, but I'm thinking next month.
Waffle version 4 is out 🎉
Example of a test that should fail but passes:
it should be obvious but in my example above
some inexistent event
is not a valid event that my contract throws. By appending the.and.not.be.reverted
matcher it seems like it completely invalidates the prioremit
matcher.If I remove the
and.not.be.reverted
from that test, I get the expected test failure.