I want to debug my unit test in vsCode, it was ruined by yarn:
yarn test path
my vsCode configuration:
{
"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"
}
but I got error:
$ 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 add inspect-brk
option and don't recognize it? how should I do