Skip to content

Conversation

@mdjastrzebski
Copy link
Member

@mdjastrzebski mdjastrzebski commented Jan 15, 2026

Adds console warnings when unknown options are passed to render, renderHook, userEvent.setup, and configure functions. Warnings include stack traces pointing to where the function was called, making it easier to identify and fix invalid option usage.

Test plan

  • Run yarn test to verify all existing tests pass
  • Manually test by calling render() with an unknown option and verify the warning includes a stack trace pointing to the test file

@codecov
Copy link

codecov bot commented Jan 15, 2026

Codecov Report

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

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1865      +/-   ##
==========================================
+ Coverage   98.11%   98.13%   +0.01%     
==========================================
  Files          79       80       +1     
  Lines        1435     1450      +15     
  Branches      373      379       +6     
==========================================
+ Hits         1408     1423      +15     
  Misses         26       26              
  Partials        1        1              

☔ 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.

@mdjastrzebski mdjastrzebski merged commit 08e1b12 into main Jan 15, 2026
24 checks passed
@mdjastrzebski mdjastrzebski deleted the chore/unknown-option-warning branch January 15, 2026 16:49
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