nodemon 不监视 tsx 文件中的更改

ped*_*ete 2 nodemon

我正在尝试测试我的 typescript react 应用程序,并且我让 nodemon 对.ts文件运行 jasmine 测试,但我无法.tsx触发监视操作。

我的 package.json 有一个相当简单的

"test": "cross-env NODE_ENV=test jasmine-ts **/*.spec.ts*",
"test-watch": "nodemon -e ts -w ./ -x npm run test",
Run Code Online (Sandbox Code Playgroud)

我认为*最后spec.ts*会告诉 nodemon 重新运行.ts.tsx但这似乎不起作用。

也没有 .tsx?

ped*_*ete 6

原来为 nodemon 写这个的正确方法是 "test-watch": "nodemon -e ts,tsx -w ./ -x npm run test",