I'm running a test using waffle in hardhat.
import { assert, expect } from "chai"
.
.
.
it("can only be changed through governance", async () => {
await expect(box.store(55)).to.be.revertedWith("Nope, you bad")
})
However when I run tests, I run into:
test/unit/testflow.test.ts:31:39 - error TS2339: Property 'revertedWith' does not exist on type 'Assertion'.
I have the package imported in my hardhat.config.ts
import "@nomiclabs/hardhat-waffle"
And I have the package installed:
package.json
"@nomiclabs/hardhat-waffle": "^2.0.2",
What am I missing?