@@ -194,7 +194,7 @@ describe('ReactAsyncClassComponent', () => {
194
194
expect ( ( ) => {
195
195
rendered = ReactTestRenderer . create ( < SyncRoot /> ) ;
196
196
} ) . toWarnDev (
197
- 'Unsafe lifecycle methods were found within the following async tree:' +
197
+ 'Unsafe lifecycle methods were found within a strict-mode tree:' +
198
198
'\n in AsyncRoot (at **)' +
199
199
'\n in SyncRoot (at **)' +
200
200
'\n\ncomponentWillMount: Please update the following components ' +
@@ -204,7 +204,7 @@ describe('ReactAsyncClassComponent', () => {
204
204
'\n\ncomponentWillUpdate: Please update the following components ' +
205
205
'to use componentDidUpdate instead: AsyncRoot' +
206
206
'\n\nLearn more about this warning here:' +
207
- '\nhttps://fb.me/react-async-component-lifecycle-hooks ' ,
207
+ '\nhttps://fb.me/react-strict-mode-warnings ' ,
208
208
) ;
209
209
210
210
// Dedupe
@@ -248,7 +248,7 @@ describe('ReactAsyncClassComponent', () => {
248
248
expect (
249
249
( ) => ( rendered = ReactTestRenderer . create ( < SyncRoot /> ) ) ,
250
250
) . toWarnDev (
251
- 'Unsafe lifecycle methods were found within the following async tree:' +
251
+ 'Unsafe lifecycle methods were found within a strict-mode tree:' +
252
252
'\n in AsyncRoot (at **)' +
253
253
'\n in SyncRoot (at **)' +
254
254
'\n\ncomponentWillMount: Please update the following components ' +
@@ -258,7 +258,7 @@ describe('ReactAsyncClassComponent', () => {
258
258
'\n\ncomponentWillUpdate: Please update the following components ' +
259
259
'to use componentDidUpdate instead: AsyncRoot, Parent' +
260
260
'\n\nLearn more about this warning here:' +
261
- '\nhttps://fb.me/react-async-component-lifecycle-hooks ' ,
261
+ '\nhttps://fb.me/react-strict-mode-warnings ' ,
262
262
) ;
263
263
264
264
// Dedupe
@@ -322,13 +322,13 @@ describe('ReactAsyncClassComponent', () => {
322
322
expect (
323
323
( ) => ( rendered = ReactTestRenderer . create ( < SyncRoot /> ) ) ,
324
324
) . toWarnDev ( [
325
- 'Unsafe lifecycle methods were found within the following async tree:' +
325
+ 'Unsafe lifecycle methods were found within a strict-mode tree:' +
326
326
'\n in AsyncRootOne (at **)' +
327
327
'\n in div (at **)' +
328
328
'\n in SyncRoot (at **)' +
329
329
'\n\ncomponentWillMount: Please update the following components ' +
330
330
'to use componentDidMount instead: Bar, Foo' ,
331
- 'Unsafe lifecycle methods were found within the following async tree:' +
331
+ 'Unsafe lifecycle methods were found within a strict-mode tree:' +
332
332
'\n in AsyncRootTwo (at **)' +
333
333
'\n in div (at **)' +
334
334
'\n in SyncRoot (at **)' +
@@ -364,21 +364,21 @@ describe('ReactAsyncClassComponent', () => {
364
364
expect ( ( ) => {
365
365
rendered = ReactTestRenderer . create ( < AsyncRoot foo = { true } /> ) ;
366
366
} ) . toWarnDev (
367
- 'Unsafe lifecycle methods were found within the following async tree:' +
367
+ 'Unsafe lifecycle methods were found within a strict-mode tree:' +
368
368
'\n in AsyncRoot (at **)' +
369
369
'\n\ncomponentWillMount: Please update the following components ' +
370
370
'to use componentDidMount instead: Foo' +
371
371
'\n\nLearn more about this warning here:' +
372
- '\nhttps://fb.me/react-async-component-lifecycle-hooks ' ,
372
+ '\nhttps://fb.me/react-strict-mode-warnings ' ,
373
373
) ;
374
374
375
375
expect ( ( ) => rendered . update ( < AsyncRoot foo = { false } /> ) ) . toWarnDev (
376
- 'Unsafe lifecycle methods were found within the following async tree:' +
376
+ 'Unsafe lifecycle methods were found within a strict-mode tree:' +
377
377
'\n in AsyncRoot (at **)' +
378
378
'\n\ncomponentWillMount: Please update the following components ' +
379
379
'to use componentDidMount instead: Bar' +
380
380
'\n\nLearn more about this warning here:' +
381
- '\nhttps://fb.me/react-async-component-lifecycle-hooks ' ,
381
+ '\nhttps://fb.me/react-strict-mode-warnings ' ,
382
382
) ;
383
383
384
384
// Dedupe
@@ -422,12 +422,12 @@ describe('ReactAsyncClassComponent', () => {
422
422
expect ( ( ) => {
423
423
ReactTestRenderer . create ( < AsyncRoot foo = { true } /> ) ;
424
424
} ) . toWarnDev (
425
- 'Unsafe lifecycle methods were found within the following async tree:' +
425
+ 'Unsafe lifecycle methods were found within a strict-mode tree:' +
426
426
'\n in AsyncRoot (at **)' +
427
427
'\n\ncomponentWillMount: Please update the following components ' +
428
428
'to use componentDidMount instead: Bar' +
429
429
'\n\nLearn more about this warning here:' +
430
- '\nhttps://fb.me/react-async-component-lifecycle-hooks ' ,
430
+ '\nhttps://fb.me/react-strict-mode-warnings ' ,
431
431
) ;
432
432
433
433
expect ( caughtError ) . not . toBe ( null ) ;
@@ -470,15 +470,15 @@ describe('ReactAsyncClassComponent', () => {
470
470
}
471
471
472
472
expect ( ( ) => ReactTestRenderer . create ( < SyncRoot /> ) ) . toWarnDev (
473
- 'Unsafe lifecycle methods were found within the following async tree:' +
473
+ 'Unsafe lifecycle methods were found within a strict-mode tree:' +
474
474
'\n in PreAsyncRoot (at **)' +
475
475
'\n in SyncRoot (at **)' +
476
476
'\n\ncomponentWillMount: Please update the following components ' +
477
477
'to use componentDidMount instead: PreAsyncRoot' +
478
478
'\n\ncomponentWillReceiveProps: Please update the following components ' +
479
479
'to use static getDerivedStateFromProps instead: Bar, Foo' +
480
480
'\n\nLearn more about this warning here:' +
481
- '\nhttps://fb.me/react-async-component-lifecycle-hooks ' ,
481
+ '\nhttps://fb.me/react-strict-mode-warnings ' ,
482
482
) ;
483
483
484
484
// Dedupe
0 commit comments