Cannot debug unit test with karma in CLI version 6.1.2
See original GitHub issueVersions
- 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:
- Created 5 years ago
- Reactions:1
- Comments:5 (2 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.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.