Skip to content

fix: allow chain call timeout to override nested items timeout - #5612

Merged
mark-wiemer merged 14 commits into
mochajs:mainfrom
hainenber:fix/allow-chain-call-timeout-to-override-nested-items-timeout
Jan 23, 2026
Merged

mark-wiemer merged 14 commits into
mochajs:mainfrom
hainenber:fix/allow-chain-call-timeout-to-override-nested-items-timeout

Conversation

@hainenber

Copy link
Copy Markdown
Contributor

PR Checklist

Overview

Fixes the issue with timeout chain call in describe suite doesn't correctly override the config for inner/nested suite and test cases.

hainenber and others added 4 commits January 4, 2026 15:24
…ed in chain call

Signed-off-by: hainenber <dotronghai96@gmail.com>
Signed-off-by: hainenber <dotronghai96@gmail.com>
Signed-off-by: hainenber <dotronghai96@gmail.com>
@hainenber hainenber changed the title Fix/allow chain call timeout to override nested items timeout fix: allow chain call timeout to override nested items timeout Jan 4, 2026
@codecov

codecov Bot commented Jan 4, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.45%. Comparing base (e06cce7) to head (1b4d6e5).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5612      +/-   ##
==========================================
+ Coverage   88.40%   88.45%   +0.05%     
==========================================
  Files          66       66              
  Lines        4787     4791       +4     
  Branches      977      977              
==========================================
+ Hits         4232     4238       +6     
+ Misses        555      553       -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.

Comment thread test/unit/timeout.spec.js Resolved
Comment thread lib/suite.js Resolved
Comment thread lib/suite.js Resolved
Comment thread lib/suite.js Resolved
Comment thread lib/suite.js Resolved
@mark-wiemer mark-wiemer added the status: waiting for author waiting on response from OP or other posters - more information needed label Jan 4, 2026
hainenber and others added 3 commits January 4, 2026 22:46
Co-authored-by: Mark Wiemer <7833360+mark-wiemer@users.noreply.github.com>
Signed-off-by: hainenber <dotronghai96@gmail.com>
…clearer

Signed-off-by: hainenber <dotronghai96@gmail.com>
@mark-wiemer mark-wiemer removed the status: waiting for author waiting on response from OP or other posters - more information needed label Jan 4, 2026
@mark-wiemer mark-wiemer added the status: needs review a maintainer should (re-)review this pull request label Jan 4, 2026
@mark-wiemer mark-wiemer self-assigned this Jan 4, 2026
@mark-wiemer mark-wiemer added this to the v12.x milestone Jan 4, 2026
@mark-wiemer mark-wiemer removed the status: needs review a maintainer should (re-)review this pull request label Jan 14, 2026

@mark-wiemer mark-wiemer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Very close :)

Comment thread test/unit/timeout.spec.js Resolved
Signed-off-by: hainenber <dotronghai96@gmail.com>
@hainenber
hainenber requested a review from mark-wiemer January 15, 2026 14:19

@mark-wiemer mark-wiemer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thank you! I'll give this a few business days for @JoshuaKGoldberg to review :)

@JoshuaKGoldberg JoshuaKGoldberg left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I have to admit, I was surprised this solution worked. But it does make sense 🙂 nicely done!

Comment thread test/integration/timeout.spec.js Resolved
hainenber and others added 2 commits January 21, 2026 23:17
Co-authored-by: Josh Goldberg ✨ <git@joshuakgoldberg.com>
@mark-wiemer
mark-wiemer merged commit 5525da6 into mochajs:main Jan 23, 2026
79 checks passed
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.

🐛 Bug: timeout() chain call on describe not working as expected

4 participants