我安装了bun.js vs code 插件,并使用提供的配置成功调试了打字稿文件。如果我设置,还可以调试一个测试文件program:${file}
但没有 launch.json 示例如何调试或仅运行所有测试
我正在使用的配置,断点并不总是有效,但到目前为止还可以
{
"type": "bun",
"request": "launch",
"name": "Debug Bun",
"program": "${file}",// just open *.test.ts file and this line will allow you to debug current test file
"args": [],
"cwd": "${workspaceFolder}",
"env": {},
"strictEnv": false,
"watchMode": false,
"stopOnEntry": false,
"noDebug": false,
"runtime": "bun",
},
Run Code Online (Sandbox Code Playgroud)
让测试资源管理器以某种方式与bun一起工作也会很酷如果有人知道如何添加热键来重新启动以前的测试,那将有很大帮助