Lesson 7: Error encountered while running test #5559
-
I keep encountering this error below, i have tried to debug and isolate where the error is stemming from, but have failed to discover the source, here's it:
Here's my FundMe.test.js code :
And my Package.json (to show i have installed the compatible version of ethers)
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
change this
to this
|
Beta Was this translation helpful? Give feedback.
-
Instructions for your second issue. @Night-Prime await deployments.fixture(["all"]) We use this line to deploy all our contracts before we use them in our tests. But as you can see we gave it a tag Now it your case the issue could be the typo in the name of the smart contract you mentioned in your tests or a missing tag for that deploy script file. I hope now you can figure it out yourself, if you still face any issues then please leave your repository link so I can let you know where is the error exactly. |
Beta Was this translation helpful? Give feedback.
@Night-Prime Remove
default
frommodule.exports.default
in your deploy scripts. Otherwise, tags will not be able to execute.