PatrickAlphaC / hardhat-smartcontract-lottery-fcc

MIT License
118 stars 181 forks source link

Error HH305: Unrecognized param --grep #167

Closed jmaier6 closed 1 year ago

jmaier6 commented 1 year ago

I am running a test in section 8 and running into a hardhat error.

When I run hh test there is no issue and everything runs fine, but when I run hh test --grep "don't pay enough" I get a HH305: Unrecognized param --grep error.

I tried updating hardhat, but no luck.

Any thoughts?

jmaier6 commented 1 year ago

-- Solved. I did not correctly update hardhat version. Anything above harhat 2.9 allows this. https://ethereum.stackexchange.com/questions/113296/run-a-single-hardhat-test