developerasun / myCodeBox-web

Open source code box for web developers.
Apache License 2.0
5 stars 0 forks source link

[BUG] Mocha/Typescript Cannot find name 'describe' #218

Closed developerasun closed 2 years ago

developerasun commented 2 years ago

issue : TS can't find mocha even when @types/mocha installed

place : in myJavascript/testDriven directory

in package.json,

  "dependencies": {
    "@types/chai": "^4.3.0",
    "@types/mocha": "^9.1.0",
    "chai": "^4.3.6",
    "mocha": "^9.2.1",
    "ts-node": "^10.5.0"
  }

screenshot : attach a screenshot showing the bug

mocha-ts-describe-not-found

label : add propel lables for the bug

developerasun commented 2 years ago

solution : create a tsconfig.json file with tsc --init command.

$tsc --init