Lesson 9 Error while running tests #5467
-
I keep getting this error while running yarn hardhat test: 0 passing (2s)
Here is a link to my repo, I'd appreciate any help: https://github.com/Adelani10/hh-sc-lottery |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 8 replies
-
@Adelani10 The order of arguments in the deployment scripts and contract constructor arguments should be same otherwise it will not initialize properly. if you found this answer helpful then please mark it as Answer/solved . so others can get the answer in your "01-deploy-raffle.js" file before it has
change it to this
|
Beta Was this translation helpful? Give feedback.
-
@Adelani10 i mention all issues and there solution by comment "ERROR::" in below code . if you found this answer helpful then please mark it as Answer/solved . so others can get the answer this is your updated Raffle.test.js file for resolving all unit test related issue replace this file with your file
|
Beta Was this translation helpful? Give feedback.
-
@Adelani10 Please see the solution provided by @HarshDev56. If it solves your issue then mark it as answered otherwise let me know so I can see it further. |
Beta Was this translation helpful? Give feedback.
@Adelani10 i mention all issues and there solution by comment "ERROR::" in below code . if you found this answer helpful then please mark it as Answer/solved . so others can get the answer
this is your updated Raffle.test.js file for resolving all unit test related issue replace this file with your file