-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
console.timeEnd reporting seconds as milliseconds #6448
Comments
Mind fixing that? :) |
Sounds like a plan :) |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
🐛 Bug Report
When using
console.time
&console.timeEnd
in a test, the logged elapsed time is indicated as being in milliseconds while actually being in seconds.To Reproduce
Use
console.time
&console.timeEnd
in a test:Expected behavior
If the elapsed time is 7ms, I expect
console.timeEnd
to actually logs either:I'm assuming the current behavior is coming from these lines which convert the elapsed time in seconds and then log them in ms.
https://github.com/facebook/jest/blob/9c1c3b1f072175e434943d1eb99d84b4d72ed458/packages/jest-util/src/Console.js#L130-L131
Link to repl or repo (highly encouraged)
Repl.it demo.
Run
npx envinfo --preset jest
The text was updated successfully, but these errors were encountered: