diff --git a/packages/react-devtools-shared/src/__tests__/store-test.js b/packages/react-devtools-shared/src/__tests__/store-test.js index d5280c091c953..3638852c20b72 100644 --- a/packages/react-devtools-shared/src/__tests__/store-test.js +++ b/packages/react-devtools-shared/src/__tests__/store-test.js @@ -3142,4 +3142,105 @@ describe('Store', () => { await actAsync(() => render(null)); expect(store).toMatchInlineSnapshot(``); }); + + // @reactVersion >= 19 + it('should keep suspended boundaries in the Suspense tree but not hidden Activity', async () => { + const Activity = React.Activity || React.unstable_Activity; + + const never = new Promise(() => {}); + function Never() { + readValue(never); + return null; + } + function Component({children}) { + return
{children}
; + } + + function App({hidden}) { + return ( + <> + + + inside Activity + + + + + inside Suspense + + {hidden ? : null} + + + ); + } + + await actAsync(() => { + render(