| domain | codewithhugo.com |
| summary | The content discusses three separate topics related to software testing and development:
1. Bypassing caching during tests: This can be beneficial when testing performance or when a cached response might not reflect the current state of an application.
2. Taming Timezones: The author shares experience migrating from the moment.js library to date-fns and Vanilla JS Date in order to maintain timezone-aware parsing, thus avoiding potential issues related to timezones.
3. Testing with Node.js: The post covers using built-in node:test module for mocking Date and timers (setTimeout) during tests in Node.js applications. It introduces MockTimers, an experimental class designed to allow mocking of these elements. |
| title | Code with Hugo |
| description | Node.js and JavaScript Guides - Build your web platform with modern best-practices & tools |
| keywords | node, date, hugo, read, code, testing, jest, test, typescript, environment, mermaid, modules, multiple, tests, module, patterns, application |
| upstreams |
|
| downstreams |
|
| nslookup | A 172.67.222.208, A 104.21.62.98 |
| created | 2025-11-07 |
| updated | 2025-11-28 |
| summarized | 2025-11-28 |
|
|