python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
webpack5 typescript karma invalid stack trace lines
I can't get source maps to show correct lines when using karma+webpack+typescript. I've tried two settings: devtool: inline-source-maps and devtool: eval-source-maps, but none of them show correct lin...
ducin
Votes: 0
Answers: 1
Run Karma test in Docker
I have a Angular project and it has some tests. I am running this project in google cloud and it is working. Tests pass in the local environment and Karma is used. Now I want to generate some test cov...
sachith
Votes: 0
Answers: 0
Angular 9 project fails during "ng test" with NodeJS 16
We have various applications still using Angular 9 (plans to migrate to a more current angular version are in the backlog but we don't currently have the resources to migrate them). Our company has a ...

Urs Beeli
Votes: 0
Answers: 0
How to mock an element in beforeeach using karma
My component's ngOnInit calls a queryselector method and on testing the component I see this error:
TypeError: Cannot read properties of null (reading 'querySelector')
Adding just a small code for h...

Shailesh Prajapati
Votes: 0
Answers: 1