Closed ZorbaDimatteo closed 2 years ago
I'm sorry to hear it's not working! Unfortunately I'm not really that good with typescript and I'm not sure what could be causing this. It's some kind of problem with the project setup. Have you tried creating a new empty project and just copying the relevant tests and code into it?
@ZorbaDimatteo which OS are you on? - sorry see it now. Windows it is.
Remove the single quotes in the test command around the files
"test": "mocha --compilers ts:./node_modules/ts-node/register tests/**/*.test.ts",
"test:watch": "mocha --reporter min --compilers ts:./node_modules/ts-node/register --watch tests/**/*.test.ts",
I think this should fix it. Pls re-open the issue if not.
Node Version
14.15.4
Npm version
6.14.10
After installing dependencies and running
npm run test
the outcome is: