Unit testing 如何启动oclif测试并使用vscode进行调试?
在调试模式下运行oclif项目测试时,launch.json看起来像什么?我似乎无法获得它,因此我设置了断点并介入。这个launch.json配置适合我:Unit testing 如何启动oclif测试并使用vscode进行调试?,unit-testing,visual-studio-code,oclif,Unit Testing,Visual Studio Code,Oclif,在调试模式下运行oclif项目测试时,launch.json看起来像什么?我似乎无法获得它,因此我设置了断点并介入。这个launch.json配置适合我: { "type": "node", "request": "launch", "name": "Mocha Tests", "runtimeExecutable": "${wor
{
"type": "node",
"request": "launch",
"name": "Mocha Tests",
"runtimeExecutable": "${workspaceFolder}/node_modules/ts-mocha/bin/ts-mocha",
"args": [
"${workspaceFolder}/test/**/*.ts"
],
"protocol": "inspector"
},
这个launch.json配置适合我:
{
"type": "node",
"request": "launch",
"name": "Mocha Tests",
"runtimeExecutable": "${workspaceFolder}/node_modules/ts-mocha/bin/ts-mocha",
"args": [
"${workspaceFolder}/test/**/*.ts"
],
"protocol": "inspector"
},
我从这里得到的答复中受益匪浅: 我已经用typescript对它进行了测试,
program
对调试非常有用
{
“版本”:“0.2.0”,
“配置”:[
{
“类型”:“节点”,
“请求”:“启动”,
“名称”:“启动计划”,
“程序”:“${workspaceFolder}/bin/run”,
“args”:[
“--名称”,
“Callum”,
“--武力”,
“论点”
]
}
]
}
我从这里提供的回复中受益匪浅:
我已经用typescript对它进行了测试,program
对调试非常有用
{
“版本”:“0.2.0”,
“配置”:[
{
“类型”:“节点”,
“请求”:“启动”,
“名称”:“启动计划”,
“程序”:“${workspaceFolder}/bin/run”,
“args”:[
“--名称”,
“Callum”,
“--武力”,
“论点”
]
}
]
}