developerasun / myCodeBox-web

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

[BUG] Mocha/Typescript : TypeeError Unknown file extension #219

Closed developerasun closed 2 years ago

developerasun commented 2 years ago

issue : mocha throwing type error for .ts file

place : myJavascript/testDriven directory

screenshot : attach a screenshot showing the bug

unknown-ts

label : add propel lables for the bug

developerasun commented 2 years ago

solution : delete type:module in package.json and set esModuleInterop:true in tsconfig.json.

in package.json,

  "type": "commonjs"

in tsconfig.json,

 "esModuleInterop": true