Title: doc: fix incorrect test runner mock examples · nodejs/node@205d0a5 · GitHub
Open Graph Title: doc: fix incorrect test runner mock examples · nodejs/node@205d0a5
X Title: doc: fix incorrect test runner mock examples · nodejs/node@205d0a5
Description: Node.js JavaScript runtime ✨🐢🚀✨. Contribute to nodejs/node development by creating an account on GitHub.
Open Graph Description: The CJS mock.timers.setTime example asserted the timer ran right after setTime() with no tick() call, which contradicts the documented behavior and the ESM example above it. The mock.module example...
X Description: The CJS mock.timers.setTime example asserted the timer ran right after setTime() with no tick() call, which contradicts the documented behavior and the ESM example above it. The mock.module example...
Opengraph URL: /nodejs/node/commit/205d0a57f2f48907fe62db9de934fec154f0e54e
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/commit/:name(/*path) |
| route-controller | commit |
| route-action | show |
| fetch-nonce | v2:5c9d319e-8052-caf7-ba36-b1e5acc329d6 |
| current-catalog-service-hash | f3abb0cc802f3d7b95fc8762b94bdcb13bf39634c40c357301c4aa1d67a256fb |
| request-id | C732:2F844:22CC8:2F59D:6A4C6AB6 |
| html-safe-nonce | 08b20655f252202e01aed28d62eac65654efea13c81360cdbae2d901e914fc71 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNzMyOjJGODQ0OjIyQ0M4OjJGNTlEOjZBNEM2QUI2IiwidmlzaXRvcl9pZCI6IjU3ODcwNjEwMTczMDI5MDQ2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 5de1b5693333e77640f6607913db351a58873b1fd9f15f97c9d0504cc38a5bd9 |
| hovercard-subject-tag | repository:27193779 |
| github-keyboard-shortcuts | repository,commits,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/nodejs/node/commit/205d0a57f2 |
| twitter:image | https://opengraph.githubassets.com/4ed28ee4d629da0483522dfb89beb8296a50e80e4f12eaaec5cc20df35dea400/nodejs/node/commit/205d0a57f2f48907fe62db9de934fec154f0e54e |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4ed28ee4d629da0483522dfb89beb8296a50e80e4f12eaaec5cc20df35dea400/nodejs/node/commit/205d0a57f2f48907fe62db9de934fec154f0e54e |
| og:image:alt | The CJS mock.timers.setTime example asserted the timer ran right after setTime() with no tick() call, which contradicts the documented behavior and the ESM example above it. The mock.module example... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:updated_time | 1781770284 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3d11bb817438277de2a940854450e83a7d32b6aeb5014e9e6b00a6423900251c |
| turbo-cache-control | no-cache |
| go-import | github.com/nodejs/node git https://github.com/nodejs/node.git |
| octolytics-dimension-user_id | 9950313 |
| octolytics-dimension-user_login | nodejs |
| octolytics-dimension-repository_id | 27193779 |
| octolytics-dimension-repository_nwo | nodejs/node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27193779 |
| octolytics-dimension-repository_network_root_nwo | nodejs/node |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 14099438da5379150f15a2892474c7c7e6c0e55e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width