I have checked the deployments folder and it too show the deployments have been made:
The full error is as follows:
FundMe
constructor
1) "before each" hook for "Sets the Aggregator address correctly"
0 passing (1s)
1 failing
1) FundMe
"before each" hook for "Sets the Aggregator address correctly":
Error: No Contract deployed with name FundMe
at Object.getContract (node_modules/@nomiclabs/hardhat-ethers/src/internal/helpers.ts:447:11)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at Context.<anonymous> (test/unit/FundMe.test.js:13:18)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
I have tried redeploying using yarn hardhat deploy and deploy happens without any error, but test still doesn't detect the deployments.
I have tried other hit and trials methods too, but no luck.
Does anyone know some troublsheeoting tips.
while creating unit test for FundMe Contract, I have got this error.
The testing code is below
I have checked the deployments folder and it too show the deployments have been made:
The full error is as follows:
I have tried redeploying using
yarn hardhat deploy
and deploy happens without any error, but test still doesn't detect the deployments. I have tried other hit and trials methods too, but no luck. Does anyone know some troublsheeoting tips.