Lesson 14: Basic NFT Unit Tests "before each" hook for "Initializes the NFT Correctly." #4764
Unanswered
umairahmed88
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Hi, maybe check: |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I got this error
Basic NFT Unit Tests
Constructor
0 passing (6s)
1 failing
"before each" hook for "Initializes the NFT Correctly.":
Error: No Contract deployed with name BasicNft
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. (test/unit/basicNft.test.js:18:16)
error Command failed with exit code 1.
My code is
const { assert } = require("chai");
const { network, deployments, ethers } = require("hardhat");
const { developmentChains } = require("../../helper-hardhat-config");
!developmentChains.includes(network.name)
? describe.skip
: describe("Basic NFT Unit Tests", function () {
let basicNft, deployer;
Beta Was this translation helpful? Give feedback.
All reactions