question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot debug unit test with karma in CLI version 6.1.2

See original GitHub issue

Versions

  • angular CLI: 6.1.2
  • angular-devkit/build-angular: ~0.7.2
  • ide: Webstorm 2018.2

Repro steps

The log given by the failure

  • Before angular-devkit/build-angular: 0.7.2(like 0.6.8), there is a problem with ‘importing node_modules using Less’.
  • In angular-devkit/build-angular:0.7.2, unit test with karma can not debug(breakpoints cannot get into debug dialog) in Webstorm 2018.2, but the bug with importing node_modules fixed.

Desired functionality

  • Unit-test can run properly.

Mini repo for issue

  • angular-devkit/build-angular: 0.6.8 version with module import problem the link
  • angular-devkit/build-angular: 0.7.2 version with debug problem link

Mention any other details that might be useful

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
filipesilvacommented, Aug 7, 2018

This seems like a bug but we’ll need to look at a reproduction to find and fix the problem. Can you setup a minimal repro please?

You can read here why this is needed. A good way to make a minimal repro is to create a new app via ng new repro-app and adding the minimum possible code to show the problem. Then you can push this repository to github and link it here.

0reactions
angular-automatic-lock-bot[bot]commented, Sep 9, 2019

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot debug tests in Karma for projects generated ... - GitHub
I'd like to be able to debug Jasmine tests inside the Karma runner (via the browser) - in previous versions of Angular CLI,...
Read more >
How to debug Karma tests in Visual Studio Code?
Open karma.conf.js and perform the following change: · Open app.component.spec.ts and set a break point: · Select "Karma Tests" in the debug menu:....
Read more >
Debugging Karma Tests with angular-cli - Breakpoints are ...
Hi,. 1) I created a new angular-cli projekt using "ng new karmaTest". 2) Under Run/Debug-Configurations I created a new Karma configuration:.
Read more >
Changelog - Karma test runner
The recommended way is to have local modules (karma and all the plugins that your project needs) stored in your package.json . You...
Read more >
Running and Debugging Tests in Karma | Web Age Solutions
You will use Karma to run the test suites and use Chrome Developer tools and VS Code to debug the tests. Part 1...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found