Bug #24940
closed
mgr/dashboard: How to interactively debug frontend unit tests
Added by Volker Theile almost 6 years ago.
Updated about 3 years ago.
Description
I'm missing a documentation and maybe jest configuration to interactively debug frontend unit tests.
I have been using the VS Code plugin to debug the tests.
When I want to debug a test it will run the following command:
cd ~/workspace/ceph/src/pybind/mgr/dashboard/frontend ; env "CI=vscode-jest-tests" ~/.nvm/versions/node/v8.11.3/bin/node --inspect-brk=21089 node_modules/jest/bin/jest.js --runInBand dashboard.service.spec.ts --testNamePattern "should call getHealth"
Debugger listening on ws://127.0.0.1:21089/fa93aab8-641c-4ef0-b638-8430f5a1c50e
For help see https://nodejs.org/en/docs/inspector
Debugger attached.
- Assignee deleted (
Tiago Melo)
- Status changed from New to Closed
- Project changed from mgr to Dashboard
- Category changed from 132 to General
Also available in: Atom
PDF