nativescript-community / nativescript-vscode-extension

A Visual Studio Code Extension for NativeScript
https://www.nativescript.org/visual-studio-code
Apache License 2.0
82 stars 32 forks source link

Cannot debug unit tests with HMR #251

Closed endarova closed 5 years ago

endarova commented 5 years ago

When running test command with hmr breakpoints in unit tests are not hit and you cannot debug them.

Steps:

  1. tns create Myapp --ng
  2. Create nsconfig.json with "useLegacyWorkflow": false in it
  3. tns test init --framework mocha
  4. In VSCode set breakpoints in example.ts file
  5. In VSCode start Test on Android or iOS
  6. Try to debug and hit the breakpoints in the test file

Result: Breakpoints in the test file are never hit. Expected: Debugger to stop on the breakpoints in the test file.