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
Hello, I run into an issue using the yarn hardhat test in the Javascript Debug Console in order to debug until a breakpoint in FundMe.test.js.
Timestamp in the video : https://youtu.be/gyMwXuJrbJQ?t=41503
I followed these steps :
I place the breakpoint in the code.
I go to the run and debug tab and hit "Javascript Debug Terminal", then the terminal pops up but without the same debug Icon.
I run the command yarn hardhat test in the Javascript Debug Terminal. The breakpoint is ignored (because the test which do not pass is after the breakpoint) :
In the debug console tab of the terminal an error is displayed. FundMe.test.js file is recognized but there is an error because describe is not defined.
However, I did installed and imported chai (and the tests execues, so chai should be working) :
node_modules :
I also tried to reinstall chai but I got this error :
Furthermore, when I run yarn hardhat test in the Javascript Debug Terminal the Run and Debug tab doesn't seem to change (as if I wasn't in attach mode of the debugger). I still have this :
But when hit Run and Debug in the Run and Debug tab I access the debug mode (but the same error is prompted in the debug console about describe):
I'm using the "debug.javascript.autoAttachFilter": "always" setting in my settings.json but the file still doesn't seem to attach using yarn hardhat test
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I run into an issue using the
yarn hardhat test
in the Javascript Debug Console in order to debug until a breakpoint inFundMe.test.js
.Timestamp in the video : https://youtu.be/gyMwXuJrbJQ?t=41503
I followed these steps :
I place the breakpoint in the code.

I go to the run and debug tab and hit "Javascript Debug Terminal", then the terminal pops up but without the same debug Icon.

I run the command

yarn hardhat test
in the Javascript Debug Terminal. The breakpoint is ignored (because the test which do not pass is after the breakpoint) :In the debug console tab of the terminal an error is displayed.

FundMe.test.js
file is recognized but there is an error because describe is not defined.However, I did installed and imported chai (and the tests execues, so chai should be working) :

node_modules :

I also tried to reinstall chai but I got this error :

Furthermore, when I run

yarn hardhat test
in the Javascript Debug Terminal the Run and Debug tab doesn't seem to change (as if I wasn't in attach mode of the debugger). I still have this :But when hit

Run and Debug
in the Run and Debug tab I access the debug mode (but the same error is prompted in the debug console about describe):I'm using the "debug.javascript.autoAttachFilter": "always" setting in my settings.json but the file still doesn't seem to attach using
yarn hardhat test
What am I doing wrong?
Beta Was this translation helpful? Give feedback.
All reactions