Quantcast
Channel: Active questions tagged visual-studio-code - Stack Overflow
Viewing all articles
Browse latest Browse all 97313

vscode error about "--inspect-brk" when I run yarn test every time via vscode debugger

$
0
0

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


Viewing all articles
Browse latest Browse all 97313

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>