You can run the unit tests on the command line using yarn test
.
To debug the tests in VSCode, you can add the following to your vscode launch.json file
{
"name": "Debug Jest Tests",
"type": "node",
"request": "launch",
"runtimeArgs": [
"--inspect-brk",
"${workspaceFolder}/ooui/packages/mdcpp/node_modules/jest/bin/jest.js",
"--runInBand"
],
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"localRoot": "${workspaceFolder}/ooui/packages/mdcpp"
}