Commit 6a5f2fc Jack Pope
committed
1 parent 54a0739 commit 6a5f2fc Copy full SHA for 6a5f2fc
File tree 2 files changed +9
-7
lines changed
packages/react-devtools-shared/src/__tests__
2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,9 @@ beforeEach(() => {
58
58
jest . useFakeTimers ( ) ;
59
59
60
60
// Use utils.js#withErrorsOrWarningsIgnored instead of directly mutating this array.
61
- global . _ignoredErrorOrWarningMessages = [ ] ;
61
+ global . _ignoredErrorOrWarningMessages = [
62
+ 'react-test-renderer is deprecated.' ,
63
+ ] ;
62
64
function shouldIgnoreConsoleErrorOrWarn ( args ) {
63
65
let firstArg = args [ 0 ] ;
64
66
if (
Original file line number Diff line number Diff line change @@ -2586,14 +2586,14 @@ describe('TreeListContext', () => {
2586
2586
utils . act ( ( ) => TestRenderer . create ( < Contexts /> ) ) ;
2587
2587
2588
2588
expect ( store ) . toMatchInlineSnapshot ( `
2589
- ✕ 1, ⚠ 0
2589
+ ✕ 1, ⚠ 1
2590
2590
[root]
2591
2591
<ErrorBoundary> ✕
2592
2592
` ) ;
2593
2593
2594
2594
selectNextErrorOrWarning ( ) ;
2595
2595
expect ( state ) . toMatchInlineSnapshot ( `
2596
- ✕ 1, ⚠ 0
2596
+ ✕ 1, ⚠ 1
2597
2597
[root]
2598
2598
→ <ErrorBoundary> ✕
2599
2599
` ) ;
@@ -2648,14 +2648,14 @@ describe('TreeListContext', () => {
2648
2648
utils . act ( ( ) => TestRenderer . create ( < Contexts /> ) ) ;
2649
2649
2650
2650
expect ( store ) . toMatchInlineSnapshot ( `
2651
- ✕ 1, ⚠ 0
2651
+ ✕ 1, ⚠ 1
2652
2652
[root]
2653
2653
<ErrorBoundary> ✕
2654
2654
` ) ;
2655
2655
2656
2656
selectNextErrorOrWarning ( ) ;
2657
2657
expect ( state ) . toMatchInlineSnapshot ( `
2658
- ✕ 1, ⚠ 0
2658
+ ✕ 1, ⚠ 1
2659
2659
[root]
2660
2660
→ <ErrorBoundary> ✕
2661
2661
` ) ;
@@ -2705,15 +2705,15 @@ describe('TreeListContext', () => {
2705
2705
utils . act ( ( ) => TestRenderer . create ( < Contexts /> ) ) ;
2706
2706
2707
2707
expect ( store ) . toMatchInlineSnapshot ( `
2708
- ✕ 2, ⚠ 0
2708
+ ✕ 2, ⚠ 1
2709
2709
[root]
2710
2710
▾ <ErrorBoundary> ✕
2711
2711
<Child> ✕
2712
2712
` ) ;
2713
2713
2714
2714
selectNextErrorOrWarning ( ) ;
2715
2715
expect ( state ) . toMatchInlineSnapshot ( `
2716
- ✕ 2, ⚠ 0
2716
+ ✕ 2, ⚠ 1
2717
2717
[root]
2718
2718
→ ▾ <ErrorBoundary> ✕
2719
2719
<Child> ✕
You can’t perform that action at this time.
0 commit comments