每次通过vscode调试器运行yarn test时,关于“ --inspect-brk”的vscode错误

时间:2019-05-25 04:37:38

标签: debugging visual-studio-code jestjs yarnpkg

我想在vsCode中调试我的单元测试,它被毛线弄坏了:

create proc sppromediorango @efinal1 int=0,--min value @efinal2 int=10--max value as begin --here i make a computed column for getting the average score select ([ScoreEParcial]*0.4+[ScoreEFinal]*0.6)as averagescore from [dbo].[tbAlumnos] a inner join [dbo].[tbScore] c on (a.aluID=c.ScoreAluID) --here i´m looking for a correct method where averagescore between @efinal1 and @efinal2 end go

我的vsCode配置:

yarn test path

但是我得到了错误:

{
      "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"
    }

vsCode添加$ 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 选项,无法识别吗?我该怎么办

1 个答案:

答案 0 :(得分:0)

我猜您可能在此问题之后遇到了更多问题。我自己仍在执行此任务。也就是说,这是您问题的答案。 I found it here.如果将端口添加到配置中,至少该问题将消失。

      "port": 4079 (for example)