我正在尝试Mocha
使用以下命令运行单元测试Windows
。
mocha --require ts-node/register test.spec.ts
并得到以下错误
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.
尽管我的tsconfig.json
文件中有以下内容。
"experimentalDecorators": true,
谁能建议我如何引用该tsconfig.json
文件?