使用(https://github.com/Microsoft/TypeScript-React-Starter)创建一个应用程序
安装-g创建-反应-应用程序
创建-反应-应用程序-应用-应用-脚本-版本=反应-脚本-ts
我已经看过许多文章,好像在兜圈子,但我还没有找到如何调试默认的app.test.tsx
节点位于7.9.0版本上,其他所有内容都应该在最新版本上。
发布于 2017-09-21 14:41:27
现在已经修好了。https://github.com/Microsoft/TypeScript-React-Starter/issues/46
{
"version": "0.2.0",
"configurations": [
{
"name": "Debug CRA Tests",
"type": "node",
"request": "launch",
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/react-scripts-ts",
"runtimeArgs": [
"--inspect-brk",
"test"
],
"args": [
"--runInBand",
"--no-cache",
"--env=jsdom"
],
"cwd": "${workspaceRoot}",
"protocol": "inspector",
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen"
}
]
}<!-- begin snippet: js hide: false console: true babel: false -->
https://stackoverflow.com/questions/45663364
复制相似问题