Skip to content

Cannot debug unit tests with HMR #251

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
endarova opened this issue Apr 17, 2019 · 0 comments
Closed

Cannot debug unit tests with HMR #251

endarova opened this issue Apr 17, 2019 · 0 comments

Comments

@endarova
Copy link

  • CLI: 5.3.2
  • VSCode extension: Build version: v.2019.3.27.1

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants