Mocha Tests unexpected error. #5384
Answered
by
alymurtazamemon
kihiuFrank
asked this question in
Q&A
-
My tests were running well but not when I run ErrorAn unexpected error occurred:
TypeError: describe is not a function
at Object.<anonymous> (/Users/k_frankline/projects/ICO/test/ico.js:8:7)
at Module._compile (node:internal/modules/cjs/loader:1126:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1180:10)
at Module.load (node:internal/modules/cjs/loader:1004:32)
at Function.Module._load (node:internal/modules/cjs/loader:839:12)
at Module.require (node:internal/modules/cjs/loader:1028:19)
at require (node:internal/modules/cjs/helpers:102:18)
at /Users/k_frankline/projects/ICO/node_modules/hardhat/node_modules/mocha/lib/mocha.js:414:36
at Array.forEach (<anonymous>)
at Mocha.loadFiles (/Users/k_frankline/projects/ICO/node_modules/hardhat/node_modules/mocha/lib/mocha.js:411:14)
error Command failed with exit code 1. I think it's a dependency issue. I have tried different versions of mocha but nothing works. What could be the issue? Package.json
|
Beta Was this translation helpful? Give feedback.
Answered by
alymurtazamemon
Apr 28, 2023
Replies: 1 comment 3 replies
-
@kihiuFrank Check the spelling mistake |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@kihiuFrank remove this import
const { describe } = require("mocha")