@@ -115,11 +115,7 @@ describe('StrictEffectsMode defaults', () => {
115115 </ React . StrictMode > ,
116116 ) ;
117117
118- await waitForPaint ( [
119- 'useLayoutEffect mount "one"' ,
120- 'useLayoutEffect unmount "one"' ,
121- 'useLayoutEffect mount "one"' ,
122- ] ) ;
118+ await waitForPaint ( [ 'useLayoutEffect mount "one"' ] ) ;
123119 expect ( log ) . toEqual ( [
124120 'useLayoutEffect mount "one"' ,
125121 'useLayoutEffect unmount "one"' ,
@@ -142,10 +138,6 @@ describe('StrictEffectsMode defaults', () => {
142138 'useLayoutEffect unmount "one"' ,
143139 'useLayoutEffect mount "one"' ,
144140 'useLayoutEffect mount "two"' ,
145-
146- // Since "two" is new, it should be double-invoked.
147- 'useLayoutEffect unmount "two"' ,
148- 'useLayoutEffect mount "two"' ,
149141 ] ) ;
150142 expect ( log ) . toEqual ( [
151143 // Cleanup and re-run "one" (and "two") since there is no dependencies array.
@@ -196,10 +188,6 @@ describe('StrictEffectsMode defaults', () => {
196188 await waitForAll ( [
197189 'useLayoutEffect mount "one"' ,
198190 'useEffect mount "one"' ,
199- 'useLayoutEffect unmount "one"' ,
200- 'useEffect unmount "one"' ,
201- 'useLayoutEffect mount "one"' ,
202- 'useEffect mount "one"' ,
203191 ] ) ;
204192 expect ( log ) . toEqual ( [
205193 'useLayoutEffect mount "one"' ,
@@ -237,12 +225,6 @@ describe('StrictEffectsMode defaults', () => {
237225 'useEffect unmount "one"' ,
238226 'useEffect mount "one"' ,
239227 'useEffect mount "two"' ,
240-
241- // Since "two" is new, it should be double-invoked.
242- 'useLayoutEffect unmount "two"' ,
243- 'useEffect unmount "two"' ,
244- 'useLayoutEffect mount "two"' ,
245- 'useEffect mount "two"' ,
246228 ] ) ;
247229 expect ( log ) . toEqual ( [
248230 'useEffect unmount "one"' ,
0 commit comments