@@ -137,26 +137,18 @@ describe('FragmentRefs', () => {
137137 const childB = document . querySelector ( '#childB' ) ;
138138 const childC = document . querySelector ( '#childC' ) ;
139139
140- expect ( childA . unstable_reactFragments . has ( fragmentRef . current ) ) . toBe ( true ) ;
141- expect ( childB . unstable_reactFragments . has ( fragmentRef . current ) ) . toBe ( true ) ;
142- expect ( childC . unstable_reactFragments . has ( fragmentRef . current ) ) . toBe ( false ) ;
143- expect ( childA . unstable_reactFragments . has ( fragmentParentRef . current ) ) . toBe (
144- true ,
145- ) ;
146- expect ( childB . unstable_reactFragments . has ( fragmentParentRef . current ) ) . toBe (
147- true ,
148- ) ;
149- expect ( childC . unstable_reactFragments . has ( fragmentParentRef . current ) ) . toBe (
150- true ,
151- ) ;
140+ expect ( childA . reactFragments . has ( fragmentRef . current ) ) . toBe ( true ) ;
141+ expect ( childB . reactFragments . has ( fragmentRef . current ) ) . toBe ( true ) ;
142+ expect ( childC . reactFragments . has ( fragmentRef . current ) ) . toBe ( false ) ;
143+ expect ( childA . reactFragments . has ( fragmentParentRef . current ) ) . toBe ( true ) ;
144+ expect ( childB . reactFragments . has ( fragmentParentRef . current ) ) . toBe ( true ) ;
145+ expect ( childC . reactFragments . has ( fragmentParentRef . current ) ) . toBe ( true ) ;
152146
153147 await act ( ( ) => root . render ( < Test show = { true } /> ) ) ;
154148
155149 const childD = document . querySelector ( '#childD' ) ;
156- expect ( childD . unstable_reactFragments . has ( fragmentRef . current ) ) . toBe ( false ) ;
157- expect ( childD . unstable_reactFragments . has ( fragmentParentRef . current ) ) . toBe (
158- true ,
159- ) ;
150+ expect ( childD . reactFragments . has ( fragmentRef . current ) ) . toBe ( false ) ;
151+ expect ( childD . reactFragments . has ( fragmentParentRef . current ) ) . toBe ( true ) ;
160152 } ) ;
161153
162154 describe ( 'focus methods' , ( ) => {
@@ -1104,7 +1096,7 @@ describe('FragmentRefs', () => {
11041096 }
11051097 const observer = new IntersectionObserver ( entries => {
11061098 entries . forEach ( entry => {
1107- const fragmentInstances = entry . target . unstable_reactFragments ;
1099+ const fragmentInstances = entry . target . reactFragments ;
11081100 if ( fragmentInstances ) {
11091101 Array . from ( fragmentInstances ) . forEach ( fInstance => {
11101102 const cbs = targetToCallbackMap . get ( fInstance ) || [ ] ;
0 commit comments