You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's probably not a bug, because the command npx hardhat test in the terminal works perfectly fine.
The closest solution to this problem I found here but I don't quite understand how to apply it and it looks like even if I figure it out it only will solve the problem for one configuration and if I press another green button to launch a different test, I would need to apply the same fix again, which kind of defeats the purpose of using those buttons to simplify things.
It would be super helpful if that buttons just worked out of the box.
🎉 Solved, at least in one project. To make the juicy green buttons work I had to add .mocharc.json (this is for mocha to know its defaults, so you don't need to manually fix run-debug-configurations each time):
I wonder why npx hardhat test worked without all that 🤔
Now, to make it all work out of the box, I need to find where this demo project is created, in the extension or somewhere in hardhat itself. I suspect it's the latter. There is also this issue (that I faced when only adding .mocharc.json, and not yet editing tsconfig.json)
Intellij has this super useful buttons to launch tests one by one or all together:
Unfortunately when using them with a typescript project created by hardhat extension they don't work, resulting in this error:
It's probably not a bug, because the command
npx hardhat test
in the terminal works perfectly fine.The closest solution to this problem I found here but I don't quite understand how to apply it and it looks like even if I figure it out it only will solve the problem for one configuration and if I press another green button to launch a different test, I would need to apply the same fix again, which kind of defeats the purpose of using those buttons to simplify things.
It would be super helpful if that buttons just worked out of the box.
Here is the demo project which is just the project generated by the hardhat extension itself - https://github.com/EvgeniiaVak/demo-hardhat
The text was updated successfully, but these errors were encountered: