-
Notifications
You must be signed in to change notification settings - Fork 29.1k
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
process.hrtime.bigint() comes back as undefined #43920
Comments
I don't see how it could possibly return |
I’m with you. The code runs in 30 tests and ends up failing like that in one or two of them consistently. Does not fail on my M1 Mac so no local repro. |
Perhaps when it returns |
You can also try to freeze |
Only if your code is in strict mode ( |
I'm using typescript so it's set to strict, I tried logging out
The code
|
Looks like This:
should look more like this:
|
Alright gang, I found the issue. Turns out replacing
|
Version
16.15.1
Platform
Linux XXX 4.15.0-101-generic #102-Ubuntu SMP Mon May 11 10:07:26 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Subsystem
No response
What steps will reproduce the bug?
I have a nestjs app that gets tested using jest. Sometimes when the tests are being run on our build machine
process.hrtime.bigint()
comes back as undefined. I have not been able to repro this locally.How often does it reproduce? Is there a required condition?
Randomly on build machine.
What is the expected behavior?
It's never undefined.
What do you see instead?
undefined
Only when tests are run on our build machine
Additional information
No response
The text was updated successfully, but these errors were encountered: