【发布时间】:2019-10-11 14:15:02
【问题描述】:
我想在 vsCode 中调试我的单元测试,它被 yarn 毁了:
yarn test path
我的 vsCode 配置:
{
"type": "node",
"request": "launch",
"name": "yarn test",
"runtimeExecutable": "yarn",
"runtimeArgs": [
"test",
],
"args": ["src/apps/trips/components/ChangePayoutModal/__test__/ChangePayoutModal.spec.js"],
"stopOnEntry": true,
"console": "integratedTerminal"
}
但我得到了错误:
$ node scripts/test.js --inspect-brk=31516 src/apps/trips/components/ChangePayoutModal/__test__/ChangePayoutModal.spec.js
● Unrecognized CLI Parameters:
Following options were not recognized:
["inspect-brk", "inspectBrk"]
CLI Options Documentation:
https://jestjs.io/docs/en/cli.html
vsCode 添加inspect-brk 选项但不识别?我该怎么办
【问题讨论】:
标签: debugging visual-studio-code jestjs yarnpkg