Skip to content

[pull] main from react:main - #648

Merged
pull[bot] merged 1 commit into
code:mainfrom
react:main
Aug 26, 2026
Merged

[pull] main from react:main#648
pull[bot] merged 1 commit into
code:mainfrom
react:main

Conversation

@pull

@pullpullBot commented Aug 26, 2026

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

…ges (#37384)
The custom `toThrow` override in `scripts/jest/matchers/toThrow.js`
wrapped the built-in matcher to rewrite the pre-Node-17 V8 error message
format ("Cannot read property 'x' of undefined") into the modern one
("Cannot read properties of undefined (reading 'x')"), so the test suite
could run on Node 12 to 16.
On the Node versions this repo runs on (20 per `.nvmrc`, 24 in CI), V8
only ever produces the modern format, so the override is a passthrough.
Mostly removing this because the custom matcher deep-imports
`expect/build/toThrowMatchers`, which no longer resolves on Jest 30
because each Jest package is now bundled into a single file, so this
removal unblocks the Jest 30 upgrade stacked on top.
Co-authored-by: Claude Code (kimi-k3[1m]) <noreply@anthropic.com>
@pullpullBot locked and limited conversation to collaborators Aug 26, 2026
@pull
pullBot merged commit 269bd40 into code:mainAug 26, 2026
12 checks passed
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@eps1lon