Skip to content

ci check: test_runner Temporal.Now mocking - #1

Closed
zeexzeex wants to merge 4 commits into
mainfrom
mock-timers-temporal
Closed

ci check: test_runner Temporal.Now mocking#1
zeexzeex wants to merge 4 commits into
mainfrom
mock-timers-temporal

Conversation

@zeexzeex

Copy link
Copy Markdown
Owner

CI pre-check for the MockTimers Temporal.Now work (nodejs#63369).

Includes the commits from nodejs#63312 as a prerequisite. Will be closed after the checks finish. Not intended for merging.

zeexzeex and others added 4 commits August 14, 2026 11:48
Draft documentation for nodejs#63369. The pr-url placeholder
must be replaced once the pull request is opened.

Refs: nodejs#63369
Signed-off-by: Avocado <ujubongbong@gmail.com>
Signed-off-by: Renegade334 <contact.9a5d6388@renegade334.me.uk>
Signed-off-by: Avocado <ujubongbong@gmail.com>
Signed-off-by: Avocado <ujubongbong@gmail.com>
Add a 'Temporal.Now' token to mock.timers.enable({ apis }). The mocked
instant(), zonedDateTimeISO(), plainDateTimeISO(), plainDateISO() and
plainTimeISO() methods are backed by the same internal mock clock as
Date. timeZoneId() is not mocked. Mocked values are constructed through
the internal Temporal utils so they are not affected by user
modifications to the global Temporal object.

Fixes: nodejs#63369
Refs: nodejs#63312
Signed-off-by: Avocado <ujubongbong@gmail.com>
@zeexzeex
zeexzeex force-pushed the mock-timers-temporal branch from 8a56b70 to 75c6b8d Compare August 14, 2026 02:49
@zeexzeex

Copy link
Copy Markdown
Owner Author

CI pre-check finished: all build and test jobs passed on linux x64/arm64, macOS and windows coverage. The only failure is the known pr-url REPLACEME placeholder in doc/api/test.md, to be filled once the real PR is opened. Closing as planned.

@zeexzeex zeexzeex closed this Aug 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants