When attempting to perform a unit test using Mocha
on Windows
, I used the command below:
mocha --require ts-node/register test.spec.ts
An error occurred, showing:
error TS1219: Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option to remove this warning.
Despite having the following in my tsconfig.json
file:
"experimentalDecorators": true,
Could anyone provide guidance on how I can reference the tsconfig.json
file?