karma-runner / karma-runner/karma
The results from calling console.time() do not get sent to the karma server
- Dominant language
- JavaScript
- Stars
- 12k
- Forks
- 1.7k
- PR merge metrics
- No merged PRs in 30d
Description
Hi!
I'm trying to call `console.time` in my test but I am not seeing the results on my server. As @devversion explains [here](https://github.com/angular/components/pull/20222/files#r473929549), Karma does not patch `console.time`, so the results are not pushed back from the page to the Karma server.
https://github.com/karma-runner/karma/blob/0647109358362e9c10603b1e1f6894bc8b4d0bca/context/karma.js#L107-L137.
Contributor guide
Research direction
Start in context/karma.js around lines 107-137, where Karma handles console output. Trace how console timing results are forwarded from the test page to the Karma server and identify the missing path. Done means calling console.time() in a test produces the corresponding results on the server.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- testing
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 62/100