The Wire · Showcase
JEST RUNTIME CLASS GETS MAJOR SURGERY WHILE REACT DEVTOOLS FIXES CROSS-WINDOW HOVER BUG
By RepoJournal · Filed · About Meta
Jest is undergoing a comprehensive refactor to break apart its 3,000-line runtime class, while React DevTools patches a long-standing issue where component highlights persist when you move your mouse out of the inspector panel entirely.
The Jest team is systematically decomposing the monolithic jest-runtime class across a series of PRs [1] [2] [3] [4], extracting resolution logic, transform caches, synthetic module builders, and module executors into separate concerns. This isn't a feature ship—it's architectural debt being aggressively paid down, and it matters because runtime is where test isolation lives. In parallel, a smaller but annoying fix landed in React DevTools [5] that clears component highlights when your pointer leaves the inspector window entirely [6]. Before this, the synthetic event system only fired `onMouseLeave` when moving between elements in the same document, leaving ghost highlights on the inspected page. Jest also fixed an asymmetry where ES module imports weren't caught the same way as CommonJS requires after teardown [7], closing a hole in test isolation error handling.
Action items
- → Watch Jest PRs #16081-16084 — major runtime refactor in progress, coordinate if you have custom jest plugins facebook/jest [monitor]
- → Update React DevTools to clear the DevTools highlight fix when available facebook/react [plan]
References
- [1] chore: split out resolution from runtime class ↗ facebook/jest
- [2] chore(runtime): extract transform cache and mock registries ↗ facebook/jest
- [3] chore: lift synthetic module builders ↗ facebook/jest
- [4] chore(runtime): lift module executor ↗ facebook/jest
- [5] fix(devtools): clear highlight when mouse leaves DevTools panel (#36177) facebook/react
- [6] fix(devtools): clear highlight when mouse leaves DevTools panel ↗ facebook/react
- [7] fix: handle `import`s after teardown same as `require` ↗ facebook/jest
FAQ
- What changed in Meta on May 3, 2026?
- Jest is undergoing a comprehensive refactor to break apart its 3,000-line runtime class, while React DevTools patches a long-standing issue where component highlights persist when you move your mouse out of the inspector panel entirely.
- What should Meta teams do about it?
- Watch Jest PRs #16081-16084 — major runtime refactor in progress, coordinate if you have custom jest plugins • Update React DevTools to clear the DevTools highlight fix when available
- Which Meta repositories shipped on May 3, 2026?
- facebook/jest, facebook/react