Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
s4i
on Dec 20, 2023
|
parent
|
context
|
favorite
| on:
How to unit test code that depends on time
A big blind spot in Jest (and I assume in Vitest although I have no experience) are the timezones. It’s very tricky to run the tests in other TZ’s than what Node has been started with.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: