Skip to content

[chore] Update tests to use @sinonjs/fake-timer 15#4946

Open
guimard wants to merge 1 commit intonodejs:mainfrom
guimard:upgrade-sinonjs-fake-timers
Open

[chore] Update tests to use @sinonjs/fake-timer 15#4946
guimard wants to merge 1 commit intonodejs:mainfrom
guimard:upgrade-sinonjs-fake-timers

Conversation

@guimard
Copy link
Copy Markdown

@guimard guimard commented Mar 31, 2026

This relates to...

Just a chore update

Rationale

I'm packaging undici for Debian, and I need to use the system @sinonjs/fake-timers

Changes

Just some changes in tests to be compliant to @sinonjs/fake-timers changes: Since @sinonjs/fake-timers 13, all supported timers are faked by default (including process.nextTick and queueMicrotask), which breaks Node.js networking in tests. Add toFake to exclude nextTick and queueMicrotask, matching the defaults of fake-timers 12.

Features

N/A

Bug Fixes

N/A

Breaking Changes and Deprecations

N/A

Status

@guimard guimard force-pushed the upgrade-sinonjs-fake-timers branch from 0c3eb20 to ce09c81 Compare March 31, 2026 11:45
Copy link
Copy Markdown
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Mar 31, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.93%. Comparing base (04cb773) to head (65a9a15).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4946   +/-   ##
=======================================
  Coverage   92.92%   92.93%           
=======================================
  Files         112      112           
  Lines       35709    35709           
=======================================
+ Hits        33184    33186    +2     
+ Misses       2525     2523    -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@guimard guimard force-pushed the upgrade-sinonjs-fake-timers branch from ce09c81 to 65a9a15 Compare March 31, 2026 16:17
Copy link
Copy Markdown
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

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.

3 participants