karma-runner / karma-runner/karma

The results from calling console.time() do not get sent to the karma server

Open Beginner friendly
#3,549 1 comment 0 reactions 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.