@@ -1916,8 +1916,7 @@ describe('ReactIncremental', () => {
19161916 'Legacy context API has been detected within a strict-mode tree.\n\n' +
19171917 'The old API will be supported in all 16.x releases, but applications ' +
19181918 'using it should migrate to the new version.\n\n' +
1919- 'Please update the following components: Intl, ShowBoth, ShowLocale' ,
1920- { withoutStack : true } ,
1919+ 'Please update the following component: Intl' ,
19211920 ) ;
19221921
19231922 ReactNoop . render (
@@ -1973,8 +1972,7 @@ describe('ReactIncremental', () => {
19731972 'Legacy context API has been detected within a strict-mode tree.\n\n' +
19741973 'The old API will be supported in all 16.x releases, but applications ' +
19751974 'using it should migrate to the new version.\n\n' +
1976- 'Please update the following components: Router, ShowRoute' ,
1977- { withoutStack : true } ,
1975+ 'Please update the following component: Router' ,
19781976 ) ;
19791977 } ) ;
19801978
@@ -2000,14 +1998,11 @@ describe('ReactIncremental', () => {
20001998 }
20011999
20022000 ReactNoop . render ( < Recurse /> ) ;
2003- expect ( ( ) =>
2004- expect ( Scheduler ) . toFlushWithoutYielding ( ) ,
2005- ) . toErrorDev (
2001+ expect ( ( ) => expect ( Scheduler ) . toFlushWithoutYielding ( ) ) . toErrorDev (
20062002 'Legacy context API has been detected within a strict-mode tree.\n\n' +
20072003 'The old API will be supported in all 16.x releases, but applications ' +
20082004 'using it should migrate to the new version.\n\n' +
2009- 'Please update the following components: Recurse' ,
2010- { withoutStack : true } ,
2005+ 'Please update the following component: Recurse' ,
20112006 ) ;
20122007 expect ( ops ) . toEqual ( [
20132008 'Recurse {}' ,
@@ -2051,9 +2046,9 @@ describe('ReactIncremental', () => {
20512046 'Legacy context API has been detected within a strict-mode tree.\n\n' +
20522047 'The old API will be supported in all 16.x releases, but applications ' +
20532048 'using it should migrate to the new version.\n\n' +
2054- 'Please update the following components : Recurse' ,
2049+ 'Please update the following component : Recurse' ,
20552050 ] ,
2056- { withoutStack : 1 } ,
2051+ { withoutStack : 0 } ,
20572052 ) ;
20582053 expect ( ops ) . toEqual ( [
20592054 'Recurse {}' ,
@@ -2119,8 +2114,7 @@ describe('ReactIncremental', () => {
21192114 'Legacy context API has been detected within a strict-mode tree.\n\n' +
21202115 'The old API will be supported in all 16.x releases, but applications ' +
21212116 'using it should migrate to the new version.\n\n' +
2122- 'Please update the following components: Intl, ShowLocale' ,
2123- { withoutStack : true } ,
2117+ 'Please update the following component: Intl' ,
21242118 ) ;
21252119 } ) ;
21262120
@@ -2196,14 +2190,11 @@ describe('ReactIncremental', () => {
21962190 </ IndirectionFn >
21972191 </ Intl > ,
21982192 ) ;
2199- expect ( ( ) =>
2200- expect ( Scheduler ) . toFlushWithoutYielding ( ) ,
2201- ) . toErrorDev (
2193+ expect ( ( ) => expect ( Scheduler ) . toFlushWithoutYielding ( ) ) . toErrorDev (
22022194 'Legacy context API has been detected within a strict-mode tree.\n\n' +
22032195 'The old API will be supported in all 16.x releases, but applications ' +
22042196 'using it should migrate to the new version.\n\n' +
2205- 'Please update the following components: Intl, ShowLocaleClass, ShowLocaleFn' ,
2206- { withoutStack : true } ,
2197+ 'Please update the following component: Intl' ,
22072198 ) ;
22082199 expect ( ops ) . toEqual ( [
22092200 'Intl:read {}' ,
@@ -2292,14 +2283,11 @@ describe('ReactIncremental', () => {
22922283 </ IndirectionFn >
22932284 </ Stateful > ,
22942285 ) ;
2295- expect ( ( ) =>
2296- expect ( Scheduler ) . toFlushWithoutYielding ( ) ,
2297- ) . toErrorDev (
2286+ expect ( ( ) => expect ( Scheduler ) . toFlushWithoutYielding ( ) ) . toErrorDev (
22982287 'Legacy context API has been detected within a strict-mode tree.\n\n' +
22992288 'The old API will be supported in all 16.x releases, but applications ' +
23002289 'using it should migrate to the new version.\n\n' +
2301- 'Please update the following components: Intl, ShowLocaleClass, ShowLocaleFn' ,
2302- { withoutStack : true } ,
2290+ 'Please update the following component: Intl' ,
23032291 ) ;
23042292 expect ( ops ) . toEqual ( [
23052293 'Intl:read {}' ,
@@ -2365,14 +2353,11 @@ describe('ReactIncremental', () => {
23652353
23662354 // Init
23672355 ReactNoop . render ( < Root /> ) ;
2368- expect ( ( ) =>
2369- expect ( Scheduler ) . toFlushWithoutYielding ( ) ,
2370- ) . toErrorDev (
2356+ expect ( ( ) => expect ( Scheduler ) . toFlushWithoutYielding ( ) ) . toErrorDev (
23712357 'Legacy context API has been detected within a strict-mode tree.\n\n' +
23722358 'The old API will be supported in all 16.x releases, but applications ' +
23732359 'using it should migrate to the new version.\n\n' +
2374- 'Please update the following components: Child' ,
2375- { withoutStack : true } ,
2360+ 'Please update the following component: Child' ,
23762361 ) ;
23772362
23782363 // Trigger an update in the middle of the tree
@@ -2419,14 +2404,11 @@ describe('ReactIncremental', () => {
24192404
24202405 // Init
24212406 ReactNoop . render ( < Root /> ) ;
2422- expect ( ( ) =>
2423- expect ( Scheduler ) . toFlushWithoutYielding ( ) ,
2424- ) . toErrorDev (
2407+ expect ( ( ) => expect ( Scheduler ) . toFlushWithoutYielding ( ) ) . toErrorDev (
24252408 'Legacy context API has been detected within a strict-mode tree.\n\n' +
24262409 'The old API will be supported in all 16.x releases, but applications ' +
24272410 'using it should migrate to the new version.\n\n' +
2428- 'Please update the following components: ContextProvider' ,
2429- { withoutStack : true } ,
2411+ 'Please update the following component: ContextProvider' ,
24302412 ) ;
24312413
24322414 // Trigger an update in the middle of the tree
@@ -2477,9 +2459,9 @@ describe('ReactIncremental', () => {
24772459 'Legacy context API has been detected within a strict-mode tree.\n\n' +
24782460 'The old API will be supported in all 16.x releases, but applications ' +
24792461 'using it should migrate to the new version.\n\n' +
2480- 'Please update the following components : MyComponent' ,
2462+ 'Please update the following component : MyComponent' ,
24812463 ] ,
2482- { withoutStack : true } ,
2464+ { withoutStack : 1 } ,
24832465 ) ;
24842466
24852467 expect ( ops ) . toEqual ( [
@@ -2622,14 +2604,11 @@ describe('ReactIncremental', () => {
26222604 </ TopContextProvider > ,
26232605 ) ;
26242606
2625- expect ( ( ) =>
2626- expect ( Scheduler ) . toFlushWithoutYielding ( ) ,
2627- ) . toErrorDev (
2607+ expect ( ( ) => expect ( Scheduler ) . toFlushWithoutYielding ( ) ) . toErrorDev (
26282608 'Legacy context API has been detected within a strict-mode tree.\n\n' +
26292609 'The old API will be supported in all 16.x releases, but applications ' +
26302610 'using it should migrate to the new version.\n\n' +
2631- 'Please update the following components: Child, TopContextProvider' ,
2632- { withoutStack : true } ,
2611+ 'Please update the following component: TopContextProvider' ,
26332612 ) ;
26342613 expect ( rendered ) . toEqual ( [ 'count:0' ] ) ;
26352614 instance . updateCount ( ) ;
@@ -2688,14 +2667,11 @@ describe('ReactIncremental', () => {
26882667 </ TopContextProvider > ,
26892668 ) ;
26902669
2691- expect ( ( ) =>
2692- expect ( Scheduler ) . toFlushWithoutYielding ( ) ,
2693- ) . toErrorDev (
2670+ expect ( ( ) => expect ( Scheduler ) . toFlushWithoutYielding ( ) ) . toErrorDev (
26942671 'Legacy context API has been detected within a strict-mode tree.\n\n' +
26952672 'The old API will be supported in all 16.x releases, but applications ' +
26962673 'using it should migrate to the new version.\n\n' +
2697- 'Please update the following components: Child, MiddleContextProvider, TopContextProvider' ,
2698- { withoutStack : true } ,
2674+ 'Please update the following component: TopContextProvider' ,
26992675 ) ;
27002676 expect ( rendered ) . toEqual ( [ 'count:0' ] ) ;
27012677 instance . updateCount ( ) ;
@@ -2763,14 +2739,11 @@ describe('ReactIncremental', () => {
27632739 </ TopContextProvider > ,
27642740 ) ;
27652741
2766- expect ( ( ) =>
2767- expect ( Scheduler ) . toFlushWithoutYielding ( ) ,
2768- ) . toErrorDev (
2742+ expect ( ( ) => expect ( Scheduler ) . toFlushWithoutYielding ( ) ) . toErrorDev (
27692743 'Legacy context API has been detected within a strict-mode tree.\n\n' +
27702744 'The old API will be supported in all 16.x releases, but applications ' +
27712745 'using it should migrate to the new version.\n\n' +
2772- 'Please update the following components: Child, MiddleContextProvider, TopContextProvider' ,
2773- { withoutStack : true } ,
2746+ 'Please update the following component: TopContextProvider' ,
27742747 ) ;
27752748 expect ( rendered ) . toEqual ( [ 'count:0' ] ) ;
27762749 instance . updateCount ( ) ;
@@ -2848,14 +2821,11 @@ describe('ReactIncremental', () => {
28482821 </ TopContextProvider > ,
28492822 ) ;
28502823
2851- expect ( ( ) =>
2852- expect ( Scheduler ) . toFlushWithoutYielding ( ) ,
2853- ) . toErrorDev (
2824+ expect ( ( ) => expect ( Scheduler ) . toFlushWithoutYielding ( ) ) . toErrorDev (
28542825 'Legacy context API has been detected within a strict-mode tree.\n\n' +
28552826 'The old API will be supported in all 16.x releases, but applications ' +
28562827 'using it should migrate to the new version.\n\n' +
2857- 'Please update the following components: Child, MiddleContextProvider, TopContextProvider' ,
2858- { withoutStack : true } ,
2828+ 'Please update the following component: TopContextProvider' ,
28592829 ) ;
28602830 expect ( rendered ) . toEqual ( [ 'count:0, name:brian' ] ) ;
28612831 topInstance . updateCount ( ) ;
@@ -2956,10 +2926,9 @@ describe('ReactIncremental', () => {
29562926 ReactNoop . render ( < Boundary /> ) ;
29572927 expect ( ( ) => {
29582928 expect ( Scheduler ) . toFlushWithoutYielding ( ) ;
2959- } ) . toErrorDev (
2960- [ 'Legacy context API has been detected within a strict-mode tree' ] ,
2961- { withoutStack : true } ,
2962- ) ;
2929+ } ) . toErrorDev ( [
2930+ 'Legacy context API has been detected within a strict-mode tree' ,
2931+ ] ) ;
29632932 }
29642933
29652934 // First, verify that this code path normally receives Fibers as keys,
0 commit comments