@@ -52,10 +52,7 @@ import {checkPropStringCoercion} from 'shared/CheckStringCoercion';
5252
5353import { getPublicInstance } from './ReactFiberConfigTestHost' ;
5454import { ConcurrentRoot , LegacyRoot } from 'react-reconciler/src/ReactRootTags' ;
55- import {
56- allowConcurrentByDefault ,
57- enableReactTestRendererWarning ,
58- } from 'shared/ReactFeatureFlags' ;
55+ import { enableReactTestRendererWarning } from 'shared/ReactFeatureFlags' ;
5956
6057const act = React . act ;
6158
@@ -66,8 +63,6 @@ type TestRendererOptions = {
6663 isConcurrent : boolean ,
6764 unstable_isConcurrent : boolean ,
6865 unstable_strictMode : boolean ,
69- unstable_concurrentUpdatesByDefault : boolean ,
70- ...
7166} ;
7267
7368type ReactTestRendererJSON = {
@@ -485,7 +480,6 @@ function create(
485480 let createNodeMock = defaultTestOptions . createNodeMock ;
486481 let isConcurrent = false ;
487482 let isStrictMode = false ;
488- let concurrentUpdatesByDefault = null ;
489483 if ( typeof options === 'object ' && options !== null ) {
490484 if ( typeof options . createNodeMock === 'function ') {
491485 // $FlowFixMe[incompatible-type] found when upgrading Flow
@@ -500,12 +494,6 @@ function create(
500494 if ( options . unstable_strictMode === true ) {
501495 isStrictMode = true ;
502496 }
503- if ( allowConcurrentByDefault ) {
504- if ( options . unstable_concurrentUpdatesByDefault !== undefined ) {
505- concurrentUpdatesByDefault =
506- options . unstable_concurrentUpdatesByDefault ;
507- }
508- }
509497 }
510498 let container = {
511499 children : ( [ ] : Array < Instance | TextInstance > ) ,
@@ -517,7 +505,7 @@ function create(
517505 isConcurrent ? ConcurrentRoot : LegacyRoot ,
518506 null ,
519507 isStrictMode ,
520- concurrentUpdatesByDefault ,
508+ false ,
521509 '' ,
522510 onRecoverableError ,
523511 null ,
0 commit comments