Debugging 使用Web组件调试Jest测试

Debugging 使用Web组件调试Jest测试,debugging,jestjs,webstorm,lit-element,Debugging,Jestjs,Webstorm,Lit Element,我有一个基于web组件(即lit元素)和TypeScript的web应用程序。我的玩笑测试运行得很好。 但是如何在WebStorm或VS代码中调试它们呢?在WebStorm中运行测试时,我得到以下输出: 我使用的是Electron,因为jsdom缺少大多数这些现代功能,比如适当的Web组件支持或指针事件 /usr/local/bin/node --require /Applications/WebStorm.app/Contents/plugins/JavaScriptLanguage/help

我有一个基于web组件(即lit元素)和TypeScript的web应用程序。我的玩笑测试运行得很好。 但是如何在WebStorm或VS代码中调试它们呢?在WebStorm中运行测试时,我得到以下输出:

我使用的是Electron,因为jsdom缺少大多数这些现代功能,比如适当的Web组件支持或指针事件

/usr/local/bin/node --require /Applications/WebStorm.app/Contents/plugins/JavaScriptLanguage/helpers/jest-intellij/lib/jest-intellij-stdin-fix.js paint2/node_modules/jest/bin/jest.js --runInBand --colors --reporters /Applications/WebStorm.app/Contents/plugins/JavaScriptLanguage/helpers/jest-intellij/lib/jest-intellij-reporter.js --verbose "--testNamePattern=^paint-color-toolbar " --runTestsByPath src/components/color-toolbar/paint-color-toolbar.test.ts
Debugger listening on ws://127.0.0.1:62103/fc4ef788-f569-43ce-b83f-da1a0de57cfc
For help, see: https://nodejs.org/en/docs/inspector
Debugger attached.
Debugger listening on ws://127.0.0.1:62114/6e06a226-33f6-46af-b98d-a73b36cd3128
For help, see: https://nodejs.org/en/docs/inspector
Debugger attached.
Debugger listening on ws://127.0.0.1:62117/48f67c9b-96ee-47fb-bf8d-d4f2943cca14
For help, see: https://nodejs.org/en/docs/inspector
Debugger attached.
但调试器不会停止

如果有帮助的话,有问题的项目就在这里。我正在尝试运行“测试颜色”工具栏: