Bug: Failed to pass tests with latest React experimental builds

This issue has been created since 2022-11-22.

React version: [email protected]

Steps To Reproduce

It does not reproduce the behavior in CodeSandbox, so I set up the test environment. You can see this behavior through this.

Link to code example:
https://github.com/manakuro/test-react-experimental

Steps to reproduce

1. yarn
2. yarn test

It works well on the [email protected] like here.
https://github.com/manakuro/test-react-experimental/tree/18.3.0-next-65e32e58b-20221019

The current behavior

I'm trying some tests on [email protected], and I noticed that the test that uses jest.useFakeTimers and promise inside custom hooks got stuck in the flushActQueue function.

It seems like the performConcurrentWorkOnRoot got stuck in there and I changed the callback(false) to callback(true), then it worked.
https://github.com/facebook/react/pull/25523/files#diff-74fadc1ab3f56ca2a5ae8932ba9876711d5d718c5367ba1cf4faf286c236c353R266

Screen.Recording.2022-11-18.at.9.33.07.mov

The expected behavior

Should pass the tests.

More Details About Repo
Owner Name facebook
Repo Name react
Full Name facebook/react
Language JavaScript
Created Date 2013-05-24
Updated Date 2022-12-01
Star Count 198482
Watcher Count 6646
Fork Count 41196
Issue Count 1106

YOU MAY BE INTERESTED

Issue Title Created Date Comment Count Updated Date
Vue的事件绑定方式相比于传统的DOM方式有哪些优势? 1 2019-09-20 2022-11-06
Update ssh2 to 1.6.0+ 2 2022-02-02 2022-05-07
载入时插件版的下拉动画后会有一个向右居中小位移 网页版则正常 3 2022-05-01 2022-11-14
Change the default behavior of the executable 4 2022-02-05 2022-10-19
URL detection includes '>' in link 2 2022-01-15 2022-10-31
Scopes are not chainable 1 2022-04-14 2022-11-30
Hysteresis modelling 1 2022-05-08 2022-10-04
TransientFESolution modifies the cellfields previously yielded 7 2022-09-07 2022-09-08
UFT接口的期权合约无法解析 1 2021-10-28 2021-12-24
runtime error 3 2021-12-08 2021-12-29
Set up CI to build on PRs 0 2021-12-09 2022-11-12
Setup CodeCoverage 0 2021-12-09 2021-12-29
Rename demo.html to index.html 0 2021-05-09 2022-08-02
[URGENT] Pyppeteer not working with --no-console pyinstaller 6 2021-08-22 2022-11-07
Help with hosting new erlang.org site 7 2021-10-14 2022-11-12
[🐛BUG] ValueError: uid_field must be loaded if user_feat is loaded. 0 2021-09-14 2022-11-26
Campaign view status page - Subpanel issue 1 2019-04-05 2022-11-28
Broken HTML in prompter "prompt" 5 2022-04-01 2022-11-21
panic: interface conversion: net.Conn is nil, not *net.TCPConn on GoBGP v2.27.0 7 2021-05-15 2022-10-28
Windows use `window.getConsoleMode` results is not expected 9 2022-08-19 2022-11-30
Feed doesn't refresh unless using fast mode 5 2022-11-02 2022-11-07
Cannot install plugins 1 2021-12-08 2022-10-04
Overview grammatical error 2 2022-02-05 2022-11-21
[Feature Request|Question] Make all types up to date with actual OpenAPI schema 2 2022-09-06 2022-11-06
Not generating types for remote $ref in path parameters 4 2022-09-06 2022-11-06
IssuerValidator logs incorrect message when an issuer is an empty string 0 2021-07-27 2022-09-24
Enable Defender profile on most secure cluster 2 2021-11-12 2022-11-12
Using chaos-client as library 0 2022-11-22 2022-11-23
Create Avalonia default AOT profile 2 2022-05-10 2022-11-19
Allow hooks or other interventions earlier in the start and build process 4 2022-09-28 2022-11-22
Tanka Loki to allow user configurable kv store backend instead of hard coded as 'consul' 2 2021-08-20 2022-11-12
数据库连接池设置了表前缀prefix属性,用ORM生成MODEL查询出来的SQL并没有带表前缀以致SQL出错 1 2022-06-10 2022-11-05
`.html` is stripped from URL 2 2022-10-01 2022-11-23
Consider env vars when unmarshalling 22 2016-05-17 2022-11-08
directive @contact not generated leading to invalid schema when @ContactDirective is used 0 2022-08-08 2022-11-05
S2CellUnion.Normalize Test Failure Case 2 2022-06-23 2022-11-23
Add hugo-bootstrap-5 0 2021-01-04 2022-11-22
Theme submission: Ficurinia 0 2021-01-03 2022-11-22
Theme submission: Gentoo theme 0 2021-01-22 2022-11-22
Support for 2-Dimensional Insertion into Matrix Strategy 1 2020-04-22 2022-11-13
缓存策略USE_CACHE_FIRST存在异常 4 2021-11-01 2022-11-30
Backtest Plot Tutorial 2 2021-11-15 2022-10-11
non-root / unprivileged docker image 4 2022-08-04 2022-11-10
Man page for mangoapp 2 2021-11-04 2022-11-11
Improve context object to allow better logbook entries 5 2020-12-14 2022-11-30
"logbook.write.max-body-size" not working when creating own BodyFilter that includes defaultValue() 0 2021-10-21 2022-11-27
Switch on WCPay Subscriptions feature flag after onboarding completion 4 2021-10-11 2022-07-18
Shim process should be in the same network namespace with VM process. 0 2018-02-11 2022-11-30
kube_node_labels duplicate labels 1 2021-05-24 2022-11-16