@@ -56,6 +56,7 @@ const {IsSomeRendererActing} = ReactSharedInternals;
5656type   TestRendererOptions  =  { 
5757  createNodeMock : ( element : React$Element < any > )  =>  any , 
5858  unstable_isConcurrent : boolean , 
59+   unstable_strictModeLevel : number , 
5960  ...
6061} ; 
6162
@@ -433,13 +434,17 @@ function propsMatch(props: Object, filter: Object): boolean {
433434function  create ( element : React$Element < any > ,  options : TestRendererOptions )  { 
434435  let  createNodeMock  =  defaultTestOptions . createNodeMock ; 
435436  let  isConcurrent  =  false ; 
437+   let  strictModeLevel  =  null ; 
436438  if  ( typeof  options  ===  'object'  &&  options  !==  null )  { 
437439    if  ( typeof  options . createNodeMock  ===  'function' )  { 
438440      createNodeMock  =  options . createNodeMock ; 
439441    } 
440442    if  ( options . unstable_isConcurrent  ===  true )  { 
441443      isConcurrent  =  true ; 
442444    } 
445+     if  ( options . unstable_strictModeLevel  !==  undefined )  { 
446+       strictModeLevel  =  options . unstable_strictModeLevel ; 
447+     } 
443448  } 
444449  let  container  =  { 
445450    children : [ ] , 
@@ -451,7 +456,7 @@ function create(element: React$Element<any>, options: TestRendererOptions) {
451456    isConcurrent  ? ConcurrentRoot  : LegacyRoot , 
452457    false , 
453458    null , 
454-     null , 
459+     strictModeLevel , 
455460  ) ; 
456461  invariant ( root  !=  null ,  'something  went  wrong ') ; 
457462  updateContainer ( element ,  root ,  null ,  null ) ; 
0 commit comments