-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathnew-test-results.txt
4065 lines (3416 loc) · 216 KB
/
new-test-results.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
> [email protected] test C:\Users\j4wgc01\projects\dtg
> jest
Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db
Why you should do it regularly:
https://github.com/browserslist/browserslist#browsers-data-updating
Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db
Why you should do it regularly:
https://github.com/browserslist/browserslist#browsers-data-updating
Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db
Why you should do it regularly:
https://github.com/browserslist/browserslist#browsers-data-updating
Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db
Why you should do it regularly:
https://github.com/browserslist/browserslist#browsers-data-updating
Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db
Why you should do it regularly:
https://github.com/browserslist/browserslist#browsers-data-updating
Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db
Why you should do it regularly:
https://github.com/browserslist/browserslist#browsers-data-updating
Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db
Why you should do it regularly:
https://github.com/browserslist/browserslist#browsers-data-updating
Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db
Why you should do it regularly:
https://github.com/browserslist/browserslist#browsers-data-updating
Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db
Why you should do it regularly:
https://github.com/browserslist/browserslist#browsers-data-updating
Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db
Why you should do it regularly:
https://github.com/browserslist/browserslist#browsers-data-updating
Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db
Why you should do it regularly:
https://github.com/browserslist/browserslist#browsers-data-updating
Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db
Why you should do it regularly:
https://github.com/browserslist/browserslist#browsers-data-updating
Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db
Why you should do it regularly:
https://github.com/browserslist/browserslist#browsers-data-updating
Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db
Why you should do it regularly:
https://github.com/browserslist/browserslist#browsers-data-updating
Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db
Why you should do it regularly:
https://github.com/browserslist/browserslist#browsers-data-updating
console.error
Warning: An update to DtgTable inside a test was not wrapped in act(...).
When testing, code that causes React state updates should be wrapped into act(...):
act(() => {
/* fire events that update state */
});
/* assert on the output */
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act
at DtgTable (C:\Users\j4wgc01\projects\dtg\src\components\dtg-table\dtg-table.jsx:18:35)
6 | export const loadingTimeout = (loadCanceled, callback) => {
7 | if (!loadCanceled && callback) {
> 8 | callback(true);
| ^
9 | }
10 | }
11 |
at printWarning (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:68:30)
at error (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:44:5)
at warnIfNotCurrentlyActingUpdatesInDEV (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:15034:9)
at callback (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:7129:9)
at loadingTimeout (src/components/dtg-table/dtg-table-helper.js:8:5)
console.error
Warning: An update to DtgTable inside a test was not wrapped in act(...).
When testing, code that causes React state updates should be wrapped into act(...):
act(() => {
/* fire events that update state */
});
/* assert on the output */
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act
at DtgTable (C:\Users\j4wgc01\projects\dtg\src\components\dtg-table\dtg-table.jsx:18:35)
127 | .catch(err => {
128 | if (startPage === 1) {
> 129 | setRowsShowing({ begin: 0, end: 0});
| ^
130 | setMaxRows(0);
131 | }
132 | console.error(err);
at printWarning (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:68:30)
at error (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:44:5)
at warnIfNotCurrentlyActingUpdatesInDEV (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:15034:9)
at setRowsShowing (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:7129:9)
at src/components/dtg-table/dtg-table.jsx:129:13
console.error
Warning: An update to DtgTable inside a test was not wrapped in act(...).
When testing, code that causes React state updates should be wrapped into act(...):
act(() => {
/* fire events that update state */
});
/* assert on the output */
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act
at DtgTable (C:\Users\j4wgc01\projects\dtg\src\components\dtg-table\dtg-table.jsx:18:35)
128 | if (startPage === 1) {
129 | setRowsShowing({ begin: 0, end: 0});
> 130 | setMaxRows(0);
| ^
131 | }
132 | console.error(err);
133 | if (!loadCanceled) {
at printWarning (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:68:30)
at error (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:44:5)
at warnIfNotCurrentlyActingUpdatesInDEV (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:15034:9)
at setMaxRows (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:7129:9)
at src/components/dtg-table/dtg-table.jsx:130:13
console.error
ReferenceError: fetch is not defined
at getIFetch (C:\Users\j4wgc01\projects\dtg\src\utils\api-utils.js:13:78)
at pagedDatatableRequest (C:\Users\j4wgc01\projects\dtg\src\utils\api-utils.js:121:10)
at makePagedRequest (C:\Users\j4wgc01\projects\dtg\src\components\dtg-table\dtg-table.jsx:98:7)
at C:\Users\j4wgc01\projects\dtg\src\components\dtg-table\dtg-table.jsx:85:9
at callTimer (C:\Users\j4wgc01\projects\dtg\node_modules\@sinonjs\fake-timers\src\fake-timers-src.js:497:24)
at doTickInner (C:\Users\j4wgc01\projects\dtg\node_modules\@sinonjs\fake-timers\src\fake-timers-src.js:987:29)
at doTick (C:\Users\j4wgc01\projects\dtg\node_modules\@sinonjs\fake-timers\src\fake-timers-src.js:1068:20)
at Object.tick (C:\Users\j4wgc01\projects\dtg\node_modules\@sinonjs\fake-timers\src\fake-timers-src.js:1075:20)
at FakeTimers.advanceTimersByTime (C:\Users\j4wgc01\projects\dtg\node_modules\jest-environment-jsdom\node_modules\@jest\fake-timers\build\modernFakeTimers.js:101:19)
at Object.advanceTimersByTime (C:\Users\j4wgc01\projects\dtg\node_modules\@jest\core\node_modules\jest-runtime\build\index.js:2065:26)
at Object.<anonymous> (C:\Users\j4wgc01\projects\dtg\src\components\dtg-table\dtg-table.spec.js:159:12)
at Promise.then.completed (C:\Users\j4wgc01\projects\dtg\node_modules\@jest\core\node_modules\jest-circus\build\utils.js:390:28)
at new Promise (<anonymous>)
at callAsyncCircusFn (C:\Users\j4wgc01\projects\dtg\node_modules\@jest\core\node_modules\jest-circus\build\utils.js:315:10)
at _callCircusTest (C:\Users\j4wgc01\projects\dtg\node_modules\@jest\core\node_modules\jest-circus\build\run.js:218:40)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
at _runTest (C:\Users\j4wgc01\projects\dtg\node_modules\@jest\core\node_modules\jest-circus\build\run.js:155:3)
at _runTestsForDescribeBlock (C:\Users\j4wgc01\projects\dtg\node_modules\@jest\core\node_modules\jest-circus\build\run.js:66:9)
at _runTestsForDescribeBlock (C:\Users\j4wgc01\projects\dtg\node_modules\@jest\core\node_modules\jest-circus\build\run.js:60:9)
at run (C:\Users\j4wgc01\projects\dtg\node_modules\@jest\core\node_modules\jest-circus\build\run.js:25:3)
at runAndTransformResultsToJestFormat (C:\Users\j4wgc01\projects\dtg\node_modules\@jest\core\node_modules\jest-circus\build\legacy-code-todo-rewrite\jestAdapterInit.js:167:21)
at jestAdapter (C:\Users\j4wgc01\projects\dtg\node_modules\@jest\core\node_modules\jest-circus\build\legacy-code-todo-rewrite\jestAdapter.js:82:19)
at runTestInternal (C:\Users\j4wgc01\projects\dtg\node_modules\@jest\core\node_modules\jest-runner\build\runTest.js:389:16)
at runTest (C:\Users\j4wgc01\projects\dtg\node_modules\@jest\core\node_modules\jest-runner\build\runTest.js:481:34)
at Object.worker (C:\Users\j4wgc01\projects\dtg\node_modules\@jest\core\node_modules\jest-runner\build\testWorker.js:133:12)
130 | setMaxRows(0);
131 | }
> 132 | console.error(err);
| ^
133 | if (!loadCanceled) {
134 | setApiError(err);
135 | }
at src/components/dtg-table/dtg-table.jsx:132:19
console.error
Warning: An update to DtgTable inside a test was not wrapped in act(...).
When testing, code that causes React state updates should be wrapped into act(...):
act(() => {
/* fire events that update state */
});
/* assert on the output */
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act
at DtgTable (C:\Users\j4wgc01\projects\dtg\src\components\dtg-table\dtg-table.jsx:18:35)
132 | console.error(err);
133 | if (!loadCanceled) {
> 134 | setApiError(err);
| ^
135 | }
136 | })
137 | .finally(() => {
at printWarning (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:68:30)
at error (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:44:5)
at warnIfNotCurrentlyActingUpdatesInDEV (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:15034:9)
at setApiError (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:7129:9)
at src/components/dtg-table/dtg-table.jsx:134:13
console.error
Warning: An update to DtgTable inside a test was not wrapped in act(...).
When testing, code that causes React state updates should be wrapped into act(...):
act(() => {
/* fire events that update state */
});
/* assert on the output */
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act
at DtgTable (C:\Users\j4wgc01\projects\dtg\src\components\dtg-table\dtg-table.jsx:18:35)
137 | .finally(() => {
138 | if (!loadCanceled) {
> 139 | setIsLoading(false);
| ^
140 | clearTimeout(loadTimer);
141 | }
142 | });
at printWarning (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:68:30)
at error (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:44:5)
at warnIfNotCurrentlyActingUpdatesInDEV (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:15034:9)
at setIsLoading (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:7129:9)
at src/components/dtg-table/dtg-table.jsx:139:13
PASS Standard Tests src/components/dtg-table/dtg-table.spec.js (7.16 s)
DTG table component
√ renders a table (3 ms)
√ renders a row for each item in the data array (2 ms)
√ renders a column for every item in the data (1 ms)
√ does not blow up when a column config is not provided (2 ms)
√ no caption in table when caption is not provided in config (1 ms)
√ caption is added to table when provided in config (13 ms)
√ does not blow up when there is no data in a table (1 ms)
√ sets table width to auto when width is unspecified (1 ms)
√ allows the table width to be set when specified (5 ms)
√ supports a noBorder configuration (2 ms)
√ does not show pagination controls by default (1 ms)
√ does not show table footer if shouldPage property is not included in tableProps (1 ms)
√ renders the number of rows specified in props (9 ms)
√ renders the defaultRowsPer if shouldPage === true but perPage is not specified and shows range of rows showing out of total number of rows with correct default itemsPerPage (152 ms)
√ sets a timer for the loading indicator (280 ms)
√ sets table aria prop with a single attribute and value (10 ms)
√ renders pagination Controls when there are more rows than the minimum rows-per-page-option and shouldPage is set to true (46 ms)
√ does render pagination Controls when the table is configured to load page-by-page, so long as there are more total available rows than the minimum rows-per-page-option and shouldPage is set to true (85 ms)
√ does not render pagination Controls even when the table is configured to load page-by-page, so long as there are not more total available rows than the minimum rows-per-page-option and shouldPage is set to true (17 ms)
DtgTable component - API Error
√ shows an apiError message when apiError exists
√ displays "Showing 0 - 0 rows of 0 rows" when apiError exists (1 ms)
√ does not render pagination controls if apiError exists && currentPage === 1 even when shouldPage === true
DtgTable component with shouldPage property and tableData with only one row
√ does show table footer if shouldPage property is included in tableProps (1 ms)
√ shows the "x of x rows" message with correct grammar if only one row of data exists
√ does not render pagination controls when fewer rows than the lowest available rows-per-page option in the pagination controls (1 ms)
console.error
Warning: An update to DownloadSticky inside a test was not wrapped in act(...).
When testing, code that causes React state updates should be wrapped into act(...):
act(() => {
/* fire events that update state */
});
/* assert on the output */
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act
at DownloadSticky (C:\Users\j4wgc01\projects\dtg\src\components\download-sticky\download-sticky.jsx:58:7)
130 | // without this delay, the sticky flashes just before the modal is opened.
131 | setTimeout(() => {
> 132 | setNotificationVisible(true);
| ^
133 | }, 200);
134 | setClosing(false);
135 | } else if ( (downloadsPrepared?.length > 0
at printWarning (node_modules/react-dom/cjs/react-dom.development.js:67:30)
at error (node_modules/react-dom/cjs/react-dom.development.js:43:5)
at warnIfNotCurrentlyActingUpdatesInDEV (node_modules/react-dom/cjs/react-dom.development.js:24064:9)
at setNotificationVisible (node_modules/react-dom/cjs/react-dom.development.js:16135:9)
at src/components/download-sticky/download-sticky.jsx:132:9
at callTimer (node_modules/@sinonjs/fake-timers/src/fake-timers-src.js:497:24)
at Object.next (node_modules/@sinonjs/fake-timers/src/fake-timers-src.js:1102:17)
console.error
Warning: An update to DownloadSticky inside a test was not wrapped in act(...).
When testing, code that causes React state updates should be wrapped into act(...):
act(() => {
/* fire events that update state */
});
/* assert on the output */
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act
at DownloadSticky (C:\Users\j4wgc01\projects\dtg\src\components\download-sticky\download-sticky.jsx:58:7)
130 | // without this delay, the sticky flashes just before the modal is opened.
131 | setTimeout(() => {
> 132 | setNotificationVisible(true);
| ^
133 | }, 200);
134 | setClosing(false);
135 | } else if ( (downloadsPrepared?.length > 0
at printWarning (node_modules/react-dom/cjs/react-dom.development.js:67:30)
at error (node_modules/react-dom/cjs/react-dom.development.js:43:5)
at warnIfNotCurrentlyActingUpdatesInDEV (node_modules/react-dom/cjs/react-dom.development.js:24064:9)
at setNotificationVisible (node_modules/react-dom/cjs/react-dom.development.js:16135:9)
at src/components/download-sticky/download-sticky.jsx:132:9
at callTimer (node_modules/@sinonjs/fake-timers/src/fake-timers-src.js:497:24)
at Object.next (node_modules/@sinonjs/fake-timers/src/fake-timers-src.js:1102:17)
console.error
Warning: Failed prop type: The prop `open` is marked as required in `ForwardRef(Modal)`, but its value is `null`.
at Modal (C:\Users\j4wgc01\projects\dtg\node_modules\@material-ui\core\Modal\Modal.js:94:36)
at ModalComponent (C:\Users\j4wgc01\projects\dtg\src\components\modal\modal.jsx:15:3)
at DownloadModal (C:\Users\j4wgc01\projects\dtg\src\components\download-modal\download-modal.jsx:21:26)
at div
at DownloadWrapper (C:\Users\j4wgc01\projects\dtg\src\components\download-wrapper\download-wrapper.jsx:25:28)
20 | children
21 | }) => (
> 22 | <Modal
| ^
23 | open={open}
24 | onClose={onClose}
25 | className={styles.modal}
at printWarning (node_modules/react/cjs/react.development.js:220:30)
at error (node_modules/react/cjs/react.development.js:196:5)
at checkPropTypes (node_modules/react/cjs/react.development.js:1935:11)
at validatePropTypes (node_modules/react/cjs/react.development.js:2136:7)
at Object.createElementWithValidation [as createElement] (node_modules/react/cjs/react.development.js:2240:5)
at ModalComponent (src/components/modal/modal.jsx:22:3)
at renderWithHooks (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:6016:18)
console.error
Warning: An update to DownloadSticky inside a test was not wrapped in act(...).
When testing, code that causes React state updates should be wrapped into act(...):
act(() => {
/* fire events that update state */
});
/* assert on the output */
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act
at DownloadSticky (C:\Users\j4wgc01\projects\dtg\src\components\download-sticky\download-sticky.jsx:58:7)
130 | // without this delay, the sticky flashes just before the modal is opened.
131 | setTimeout(() => {
> 132 | setNotificationVisible(true);
| ^
133 | }, 200);
134 | setClosing(false);
135 | } else if ( (downloadsPrepared?.length > 0
at printWarning (node_modules/react-dom/cjs/react-dom.development.js:67:30)
at error (node_modules/react-dom/cjs/react-dom.development.js:43:5)
at warnIfNotCurrentlyActingUpdatesInDEV (node_modules/react-dom/cjs/react-dom.development.js:24064:9)
at setNotificationVisible (node_modules/react-dom/cjs/react-dom.development.js:16135:9)
at src/components/download-sticky/download-sticky.jsx:132:9
at callTimer (node_modules/@sinonjs/fake-timers/src/fake-timers-src.js:497:24)
at Object.next (node_modules/@sinonjs/fake-timers/src/fake-timers-src.js:1102:17)
console.error
Warning: An update to DownloadSticky inside a test was not wrapped in act(...).
When testing, code that causes React state updates should be wrapped into act(...):
act(() => {
/* fire events that update state */
});
/* assert on the output */
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act
at DownloadSticky (C:\Users\j4wgc01\projects\dtg\src\components\download-sticky\download-sticky.jsx:58:7)
130 | // without this delay, the sticky flashes just before the modal is opened.
131 | setTimeout(() => {
> 132 | setNotificationVisible(true);
| ^
133 | }, 200);
134 | setClosing(false);
135 | } else if ( (downloadsPrepared?.length > 0
at printWarning (node_modules/react-dom/cjs/react-dom.development.js:67:30)
at error (node_modules/react-dom/cjs/react-dom.development.js:43:5)
at warnIfNotCurrentlyActingUpdatesInDEV (node_modules/react-dom/cjs/react-dom.development.js:24064:9)
at setNotificationVisible (node_modules/react-dom/cjs/react-dom.development.js:16135:9)
at src/components/download-sticky/download-sticky.jsx:132:9
at callTimer (node_modules/@sinonjs/fake-timers/src/fake-timers-src.js:497:24)
at Object.next (node_modules/@sinonjs/fake-timers/src/fake-timers-src.js:1102:17)
console.error
Warning: An update to DownloadSticky inside a test was not wrapped in act(...).
When testing, code that causes React state updates should be wrapped into act(...):
act(() => {
/* fire events that update state */
});
/* assert on the output */
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act
at DownloadSticky (C:\Users\j4wgc01\projects\dtg\src\components\download-sticky\download-sticky.jsx:58:7)
130 | // without this delay, the sticky flashes just before the modal is opened.
131 | setTimeout(() => {
> 132 | setNotificationVisible(true);
| ^
133 | }, 200);
134 | setClosing(false);
135 | } else if ( (downloadsPrepared?.length > 0
at printWarning (node_modules/react-dom/cjs/react-dom.development.js:67:30)
at error (node_modules/react-dom/cjs/react-dom.development.js:43:5)
at warnIfNotCurrentlyActingUpdatesInDEV (node_modules/react-dom/cjs/react-dom.development.js:24064:9)
at setNotificationVisible (node_modules/react-dom/cjs/react-dom.development.js:16135:9)
at src/components/download-sticky/download-sticky.jsx:132:9
at callTimer (node_modules/@sinonjs/fake-timers/src/fake-timers-src.js:497:24)
at Object.next (node_modules/@sinonjs/fake-timers/src/fake-timers-src.js:1102:17)
console.error
Warning: An update to DownloadSticky inside a test was not wrapped in act(...).
When testing, code that causes React state updates should be wrapped into act(...):
act(() => {
/* fire events that update state */
});
/* assert on the output */
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act
at DownloadSticky (C:\Users\j4wgc01\projects\dtg\src\components\download-sticky\download-sticky.jsx:58:7)
130 | // without this delay, the sticky flashes just before the modal is opened.
131 | setTimeout(() => {
> 132 | setNotificationVisible(true);
| ^
133 | }, 200);
134 | setClosing(false);
135 | } else if ( (downloadsPrepared?.length > 0
at printWarning (node_modules/react-dom/cjs/react-dom.development.js:67:30)
at error (node_modules/react-dom/cjs/react-dom.development.js:43:5)
at warnIfNotCurrentlyActingUpdatesInDEV (node_modules/react-dom/cjs/react-dom.development.js:24064:9)
at setNotificationVisible (node_modules/react-dom/cjs/react-dom.development.js:16135:9)
at src/components/download-sticky/download-sticky.jsx:132:9
at callTimer (node_modules/@sinonjs/fake-timers/src/fake-timers-src.js:497:24)
at Object.next (node_modules/@sinonjs/fake-timers/src/fake-timers-src.js:1102:17)
console.error
Warning: An update to DownloadSticky inside a test was not wrapped in act(...).
When testing, code that causes React state updates should be wrapped into act(...):
act(() => {
/* fire events that update state */
});
/* assert on the output */
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act
at DownloadSticky (C:\Users\j4wgc01\projects\dtg\src\components\download-sticky\download-sticky.jsx:58:7)
130 | // without this delay, the sticky flashes just before the modal is opened.
131 | setTimeout(() => {
> 132 | setNotificationVisible(true);
| ^
133 | }, 200);
134 | setClosing(false);
135 | } else if ( (downloadsPrepared?.length > 0
at printWarning (node_modules/react-dom/cjs/react-dom.development.js:67:30)
at error (node_modules/react-dom/cjs/react-dom.development.js:43:5)
at warnIfNotCurrentlyActingUpdatesInDEV (node_modules/react-dom/cjs/react-dom.development.js:24064:9)
at setNotificationVisible (node_modules/react-dom/cjs/react-dom.development.js:16135:9)
at src/components/download-sticky/download-sticky.jsx:132:9
at callTimer (node_modules/@sinonjs/fake-timers/src/fake-timers-src.js:497:24)
at Object.next (node_modules/@sinonjs/fake-timers/src/fake-timers-src.js:1102:17)
console.error
Warning: An update to DownloadSticky inside a test was not wrapped in act(...).
When testing, code that causes React state updates should be wrapped into act(...):
act(() => {
/* fire events that update state */
});
/* assert on the output */
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act
at DownloadSticky (C:\Users\j4wgc01\projects\dtg\src\components\download-sticky\download-sticky.jsx:58:7)
130 | // without this delay, the sticky flashes just before the modal is opened.
131 | setTimeout(() => {
> 132 | setNotificationVisible(true);
| ^
133 | }, 200);
134 | setClosing(false);
135 | } else if ( (downloadsPrepared?.length > 0
at printWarning (node_modules/react-dom/cjs/react-dom.development.js:67:30)
at error (node_modules/react-dom/cjs/react-dom.development.js:43:5)
at warnIfNotCurrentlyActingUpdatesInDEV (node_modules/react-dom/cjs/react-dom.development.js:24064:9)
at setNotificationVisible (node_modules/react-dom/cjs/react-dom.development.js:16135:9)
at src/components/download-sticky/download-sticky.jsx:132:9
at callTimer (node_modules/@sinonjs/fake-timers/src/fake-timers-src.js:497:24)
at Object.next (node_modules/@sinonjs/fake-timers/src/fake-timers-src.js:1102:17)
console.error
Warning: An update to DownloadSticky inside a test was not wrapped in act(...).
When testing, code that causes React state updates should be wrapped into act(...):
act(() => {
/* fire events that update state */
});
/* assert on the output */
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act
at DownloadSticky (C:\Users\j4wgc01\projects\dtg\src\components\download-sticky\download-sticky.jsx:58:7)
130 | // without this delay, the sticky flashes just before the modal is opened.
131 | setTimeout(() => {
> 132 | setNotificationVisible(true);
| ^
133 | }, 200);
134 | setClosing(false);
135 | } else if ( (downloadsPrepared?.length > 0
at printWarning (node_modules/react-dom/cjs/react-dom.development.js:67:30)
at error (node_modules/react-dom/cjs/react-dom.development.js:43:5)
at warnIfNotCurrentlyActingUpdatesInDEV (node_modules/react-dom/cjs/react-dom.development.js:24064:9)
at setNotificationVisible (node_modules/react-dom/cjs/react-dom.development.js:16135:9)
at src/components/download-sticky/download-sticky.jsx:132:9
at callTimer (node_modules/@sinonjs/fake-timers/src/fake-timers-src.js:497:24)
at Object.next (node_modules/@sinonjs/fake-timers/src/fake-timers-src.js:1102:17)
PASS Standard Tests src/components/download-wrapper/download-wrapper.spec.js (7.862 s)
DownloadWrapper
√ renders the component (2 ms)
√ updates the table name when the table object is passed into the component (6 ms)
√ updates the date string when isFiltered is true (logic handled by DataTableSelect component) (7 ms)
√ does not update the date string when an invalid date range is given (3 ms)
√ provides both the "ALL" text and date string if full date range is selected (3 ms)
√ passes an asyncAction to the data dictionary button (1 ms)
√ calls the Analytics.event when the data dictionary button is clicked (20 ms)
√ correctly indicates data for all tables will be downloaded when its allTablesSelected
prop is true (5 ms)
√ adds a well-formed download request to the downloadsContext downloadQueue (89 ms)
√ adds a well-formed download request to the downloadsContext downloadQueue when the
allTablesSelected prop is true (29 ms)
√ triggers a GA event when the cancel event is triggered within the modal (1 ms)
console.error
Warning: An update to DownloadSticky inside a test was not wrapped in act(...).
When testing, code that causes React state updates should be wrapped into act(...):
act(() => {
/* fire events that update state */
});
/* assert on the output */
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act
at DownloadSticky (C:\Users\j4wgc01\projects\dtg\src\components\download-sticky\download-sticky.jsx:58:7)
130 | // without this delay, the sticky flashes just before the modal is opened.
131 | setTimeout(() => {
> 132 | setNotificationVisible(true);
| ^
133 | }, 200);
134 | setClosing(false);
135 | } else if ( (downloadsPrepared?.length > 0
at printWarning (node_modules/react-dom/cjs/react-dom.development.js:67:30)
at error (node_modules/react-dom/cjs/react-dom.development.js:43:5)
at warnIfNotCurrentlyActingUpdatesInDEV (node_modules/react-dom/cjs/react-dom.development.js:24064:9)
at setNotificationVisible (node_modules/react-dom/cjs/react-dom.development.js:16135:9)
at src/components/download-sticky/download-sticky.jsx:132:9
at callTimer (node_modules/@sinonjs/fake-timers/src/fake-timers-src.js:497:24)
at Object.next (node_modules/@sinonjs/fake-timers/src/fake-timers-src.js:1102:17)
console.error
Warning: An update to DownloadSticky inside a test was not wrapped in act(...).
When testing, code that causes React state updates should be wrapped into act(...):
act(() => {
/* fire events that update state */
});
/* assert on the output */
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act
at DownloadSticky (C:\Users\j4wgc01\projects\dtg\src\components\download-sticky\download-sticky.jsx:58:7)
130 | // without this delay, the sticky flashes just before the modal is opened.
131 | setTimeout(() => {
> 132 | setNotificationVisible(true);
| ^
133 | }, 200);
134 | setClosing(false);
135 | } else if ( (downloadsPrepared?.length > 0
at printWarning (node_modules/react-dom/cjs/react-dom.development.js:67:30)
at error (node_modules/react-dom/cjs/react-dom.development.js:43:5)
at warnIfNotCurrentlyActingUpdatesInDEV (node_modules/react-dom/cjs/react-dom.development.js:24064:9)
at setNotificationVisible (node_modules/react-dom/cjs/react-dom.development.js:16135:9)
at src/components/download-sticky/download-sticky.jsx:132:9
at callTimer (node_modules/@sinonjs/fake-timers/src/fake-timers-src.js:497:24)
at Object.next (node_modules/@sinonjs/fake-timers/src/fake-timers-src.js:1102:17)
console.error
Warning: An update to DownloadSticky inside a test was not wrapped in act(...).
When testing, code that causes React state updates should be wrapped into act(...):
act(() => {
/* fire events that update state */
});
/* assert on the output */
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act
at DownloadSticky (C:\Users\j4wgc01\projects\dtg\src\components\download-sticky\download-sticky.jsx:58:7)
130 | // without this delay, the sticky flashes just before the modal is opened.
131 | setTimeout(() => {
> 132 | setNotificationVisible(true);
| ^
133 | }, 200);
134 | setClosing(false);
135 | } else if ( (downloadsPrepared?.length > 0
at printWarning (node_modules/react-dom/cjs/react-dom.development.js:67:30)
at error (node_modules/react-dom/cjs/react-dom.development.js:43:5)
at warnIfNotCurrentlyActingUpdatesInDEV (node_modules/react-dom/cjs/react-dom.development.js:24064:9)
at setNotificationVisible (node_modules/react-dom/cjs/react-dom.development.js:16135:9)
at src/components/download-sticky/download-sticky.jsx:132:9
at callTimer (node_modules/@sinonjs/fake-timers/src/fake-timers-src.js:497:24)
at Object.next (node_modules/@sinonjs/fake-timers/src/fake-timers-src.js:1102:17)
PASS Standard Tests src/components/download-sticky/download-sticky.spec.js (8.039 s)
DownloadSticky component
√ renders when the downloadModal is not open, and a download is being prepared (324 ms)
√ displays nothing when the downloadModal is open (6 ms)
√ displays nothing when the no downloads are in progress or queued (5 ms)
√ contains the expected text content when a single download is being prepared (67 ms)
√ contains the expected text content when a single download is ready (30 ms)
√ appropriately toggles between minimized or not (72 ms)
√ contains the expected text content with one or more downloads waiting in the queue (54 ms)
√ contains the expected text content with more than one download in the prepared state and none still in progress (41 ms)
√ contains the expected text content with one or more downloads in the prepared state along with one or more queued downloads (50 ms)
√ collapses / uncollapses the list of downloads when the "hide" toggle button is clicked (86 ms)
√ contains the expected text content with one item complete when returning to site (6 ms)
√ passes an onClosed function to StickyFooter that clears all prepared downloads (93 ms)
√ no duplicate downloads when resumed downloads complete (37 ms)
console.error
Warning: An update to StickyFooterComponent inside a test was not wrapped in act(...).
When testing, code that causes React state updates should be wrapped into act(...):
act(() => {
/* fire events that update state */
});
/* assert on the output */
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act
at StickyFooterComponent (C:\Users\j4wgc01\projects\dtg\src\components\sticky-footer\sticky-footer.jsx:8:40)
at LocationProvider (C:\Users\j4wgc01\projects\dtg\node_modules\@reach\router\index.js:76:5)
at Location (C:\Users\j4wgc01\projects\dtg\node_modules\@reach\router\index.js:56:23)
at DownloadSticky (C:\Users\j4wgc01\projects\dtg\src\components\download-sticky\download-sticky.jsx:58:7)
20 | setCloserTimeout(setTimeout(() => {
21 | if (mounted) {
> 22 | setClosing(true);
| ^
23 | }
24 | }, 1));
25 | }
at printWarning (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:68:30)
at error (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:44:5)
at warnIfNotCurrentlyActingUpdatesInDEV (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:15034:9)
at setClosing (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:7129:9)
at src/components/sticky-footer/sticky-footer.jsx:22:11
at callTimer (node_modules/@sinonjs/fake-timers/src/fake-timers-src.js:497:24)
at Object.next (node_modules/@sinonjs/fake-timers/src/fake-timers-src.js:1102:17)
console.error
Warning: An update to DownloadSticky inside a test was not wrapped in act(...).
When testing, code that causes React state updates should be wrapped into act(...):
act(() => {
/* fire events that update state */
});
/* assert on the output */
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act
at DownloadSticky (C:\Users\j4wgc01\projects\dtg\src\components\download-sticky\download-sticky.jsx:58:7)
244 | return (
245 | <StickyFooter hideAfterTime={closing ? closingTimeout : null}
> 246 | onClosed={closing ? () => setTriggerCleanupAfterClose(1) : false}>
| ^
247 | <button className={styles.toggleTab}
248 | onClick={toggleMinimizeEvent}
249 | data-testid={'minimize-toggle'}
at printWarning (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:68:30)
at error (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:44:5)
at warnIfNotCurrentlyActingUpdatesInDEV (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:15034:9)
at setTriggerCleanupAfterClose (node_modules/react-test-renderer/cjs/react-test-renderer.development.js:7129:9)
at DownloadSticky._react.default.createElement.onClosed (src/components/download-sticky/download-sticky.jsx:246:45)
at callTimer (node_modules/@sinonjs/fake-timers/src/fake-timers-src.js:497:24)
at Object.next (node_modules/@sinonjs/fake-timers/src/fake-timers-src.js:1102:17)
console.error
Warning: An update to DownloadSticky inside a test was not wrapped in act(...).
When testing, code that causes React state updates should be wrapped into act(...):
act(() => {
/* fire events that update state */
});
/* assert on the output */
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act
at DownloadSticky (C:\Users\j4wgc01\projects\dtg\src\components\download-sticky\download-sticky.jsx:58:7)
130 | // without this delay, the sticky flashes just before the modal is opened.
131 | setTimeout(() => {
> 132 | setNotificationVisible(true);
| ^
133 | }, 200);
134 | setClosing(false);
135 | } else if ( (downloadsPrepared?.length > 0
at printWarning (node_modules/react-dom/cjs/react-dom.development.js:67:30)
at error (node_modules/react-dom/cjs/react-dom.development.js:43:5)
at warnIfNotCurrentlyActingUpdatesInDEV (node_modules/react-dom/cjs/react-dom.development.js:24064:9)
at setNotificationVisible (node_modules/react-dom/cjs/react-dom.development.js:16135:9)
at src/components/download-sticky/download-sticky.jsx:132:9
at callTimer (node_modules/@sinonjs/fake-timers/src/fake-timers-src.js:497:24)
at Object.next (node_modules/@sinonjs/fake-timers/src/fake-timers-src.js:1102:17)
console.error
Warning: An update to DownloadSticky inside a test was not wrapped in act(...).
When testing, code that causes React state updates should be wrapped into act(...):
act(() => {
/* fire events that update state */
});
/* assert on the output */
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act
at DownloadSticky (C:\Users\j4wgc01\projects\dtg\src\components\download-sticky\download-sticky.jsx:58:7)
130 | // without this delay, the sticky flashes just before the modal is opened.
131 | setTimeout(() => {
> 132 | setNotificationVisible(true);
| ^
133 | }, 200);
134 | setClosing(false);
135 | } else if ( (downloadsPrepared?.length > 0
at printWarning (node_modules/react-dom/cjs/react-dom.development.js:67:30)
at error (node_modules/react-dom/cjs/react-dom.development.js:43:5)
at warnIfNotCurrentlyActingUpdatesInDEV (node_modules/react-dom/cjs/react-dom.development.js:24064:9)
at setNotificationVisible (node_modules/react-dom/cjs/react-dom.development.js:16135:9)
at src/components/download-sticky/download-sticky.jsx:132:9
at callTimer (node_modules/@sinonjs/fake-timers/src/fake-timers-src.js:497:24)
at Object.next (node_modules/@sinonjs/fake-timers/src/fake-timers-src.js:1102:17)
console.error
Warning: Can't perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in the componentWillUnmount method.
at WindowSize (C:\Users\j4wgc01\projects\dtg\node_modules\react-fns\src\WindowSize\WindowSize.tsx:22:1)
at S
at printWarning (node_modules/react-dom/cjs/react-dom.development.js:67:30)
at error (node_modules/react-dom/cjs/react-dom.development.js:43:5)
at warnAboutUpdateOnUnmountedFiberInDEV (node_modules/react-dom/cjs/react-dom.development.js:23914:9)
at scheduleUpdateOnFiber (node_modules/react-dom/cjs/react-dom.development.js:21840:5)
at Object.enqueueSetState (node_modules/react-dom/cjs/react-dom.development.js:12467:5)
at WindowSize.Object.<anonymous>.Component.setState (node_modules/react/cjs/react.development.js:365:16)
at node_modules/react-fns/src/WindowSize/WindowSize.tsx:33:10
console.error
Material-UI: The value provided to the Tabs component is invalid.
None of the Tabs' children match with `undefined`.
You can provide one of the following values: 0, 1, 2.
at getTabsMeta (node_modules/@material-ui/core/Tabs/Tabs.js:221:21)
at node_modules/@material-ui/core/Tabs/Tabs.js:238:24
at node_modules/@material-ui/core/utils/useEventCallback.js:25:29
at node_modules/@material-ui/core/Tabs/Tabs.js:398:5
at invokePassiveEffectCreate (node_modules/react-dom/cjs/react-dom.development.js:23487:20)
at HTMLUnknownElement.callCallback (node_modules/react-dom/cjs/react-dom.development.js:3945:14)
at HTMLUnknownElement.callTheUserObjectsOperation (node_modules/jsdom/lib/jsdom/living/generated/EventListener.js:26:30)
console.error
Material-UI: The value provided to the Tabs component is invalid.
None of the Tabs' children match with `undefined`.
You can provide one of the following values: 0, 1, 2.
at getTabsMeta (node_modules/@material-ui/core/Tabs/Tabs.js:221:21)
at node_modules/@material-ui/core/Tabs/Tabs.js:326:25
at node_modules/@material-ui/core/utils/useEventCallback.js:25:29
at node_modules/@material-ui/core/Tabs/Tabs.js:402:5
at invokePassiveEffectCreate (node_modules/react-dom/cjs/react-dom.development.js:23487:20)
at HTMLUnknownElement.callCallback (node_modules/react-dom/cjs/react-dom.development.js:3945:14)
at HTMLUnknownElement.callTheUserObjectsOperation (node_modules/jsdom/lib/jsdom/living/generated/EventListener.js:26:30)
console.error
Material-UI: The value provided to the Tabs component is invalid.
None of the Tabs' children match with `undefined`.
You can provide one of the following values: 0, 1, 2.
at getTabsMeta (node_modules/@material-ui/core/Tabs/Tabs.js:221:21)
at node_modules/@material-ui/core/Tabs/Tabs.js:238:24
at node_modules/@material-ui/core/utils/useEventCallback.js:25:29
at node_modules/@material-ui/core/Tabs/Tabs.js:398:5
at invokePassiveEffectCreate (node_modules/react-dom/cjs/react-dom.development.js:23487:20)
at HTMLUnknownElement.callCallback (node_modules/react-dom/cjs/react-dom.development.js:3945:14)
at HTMLUnknownElement.callTheUserObjectsOperation (node_modules/jsdom/lib/jsdom/living/generated/EventListener.js:26:30)
console.error
Material-UI: The value provided to the Tabs component is invalid.
None of the Tabs' children match with `undefined`.
You can provide one of the following values: 0, 1, 2.
at getTabsMeta (node_modules/@material-ui/core/Tabs/Tabs.js:221:21)
at node_modules/@material-ui/core/Tabs/Tabs.js:326:25
at node_modules/@material-ui/core/utils/useEventCallback.js:25:29
at node_modules/@material-ui/core/Tabs/Tabs.js:402:5
at invokePassiveEffectCreate (node_modules/react-dom/cjs/react-dom.development.js:23487:20)
at HTMLUnknownElement.callCallback (node_modules/react-dom/cjs/react-dom.development.js:3945:14)
at HTMLUnknownElement.callTheUserObjectsOperation (node_modules/jsdom/lib/jsdom/living/generated/EventListener.js:26:30)
console.error
Material-UI: The value provided to the Tabs component is invalid.
None of the Tabs' children match with `undefined`.
You can provide one of the following values: 0, 1, 2.
at getTabsMeta (node_modules/@material-ui/core/Tabs/Tabs.js:221:21)
at node_modules/@material-ui/core/Tabs/Tabs.js:238:24
at node_modules/@material-ui/core/utils/useEventCallback.js:25:29
at node_modules/@material-ui/core/Tabs/Tabs.js:398:5
at invokePassiveEffectCreate (node_modules/react-dom/cjs/react-dom.development.js:23487:20)
at HTMLUnknownElement.callCallback (node_modules/react-dom/cjs/react-dom.development.js:3945:14)
at HTMLUnknownElement.callTheUserObjectsOperation (node_modules/jsdom/lib/jsdom/living/generated/EventListener.js:26:30)
console.error
Material-UI: The value provided to the Tabs component is invalid.
None of the Tabs' children match with `undefined`.
You can provide one of the following values: 0, 1, 2.
at getTabsMeta (node_modules/@material-ui/core/Tabs/Tabs.js:221:21)
at node_modules/@material-ui/core/Tabs/Tabs.js:326:25
at node_modules/@material-ui/core/utils/useEventCallback.js:25:29
at node_modules/@material-ui/core/Tabs/Tabs.js:402:5
at invokePassiveEffectCreate (node_modules/react-dom/cjs/react-dom.development.js:23487:20)
at HTMLUnknownElement.callCallback (node_modules/react-dom/cjs/react-dom.development.js:3945:14)
at HTMLUnknownElement.callTheUserObjectsOperation (node_modules/jsdom/lib/jsdom/living/generated/EventListener.js:26:30)
console.error
Material-UI: The value provided to the Tabs component is invalid.
None of the Tabs' children match with `undefined`.
You can provide one of the following values: 0, 1, 2.
at getTabsMeta (node_modules/@material-ui/core/Tabs/Tabs.js:221:21)
at node_modules/@material-ui/core/Tabs/Tabs.js:238:24
at node_modules/@material-ui/core/utils/useEventCallback.js:25:29
at node_modules/@material-ui/core/Tabs/Tabs.js:398:5
at invokePassiveEffectCreate (node_modules/react-dom/cjs/react-dom.development.js:23487:20)
at HTMLUnknownElement.callCallback (node_modules/react-dom/cjs/react-dom.development.js:3945:14)
at HTMLUnknownElement.callTheUserObjectsOperation (node_modules/jsdom/lib/jsdom/living/generated/EventListener.js:26:30)
console.error
Material-UI: The value provided to the Tabs component is invalid.
None of the Tabs' children match with `undefined`.
You can provide one of the following values: 0, 1, 2.
at getTabsMeta (node_modules/@material-ui/core/Tabs/Tabs.js:221:21)
at node_modules/@material-ui/core/Tabs/Tabs.js:326:25
at node_modules/@material-ui/core/utils/useEventCallback.js:25:29
at node_modules/@material-ui/core/Tabs/Tabs.js:402:5
at invokePassiveEffectCreate (node_modules/react-dom/cjs/react-dom.development.js:23487:20)
at HTMLUnknownElement.callCallback (node_modules/react-dom/cjs/react-dom.development.js:3945:14)
at HTMLUnknownElement.callTheUserObjectsOperation (node_modules/jsdom/lib/jsdom/living/generated/EventListener.js:26:30)
console.error
Warning: An update to NationalDebtFifthSection inside a test was not wrapped in act(...).
When testing, code that causes React state updates should be wrapped into act(...):
act(() => {
/* fire events that update state */
});
/* assert on the output */
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act
at NationalDebtFifthSection (C:\Users\j4wgc01\projects\dtg\src\layouts\explainer\sections\national-debt\national-debt.jsx:549:45)
647 | const transformed = transformer(response);
648 | if (transformed && transformed.length === 2) {
> 649 | setData(transformed);
| ^
650 | setDate(getDateWithoutOffset(transformed[1].record_date))
651 | }
652 | });
at printWarning (node_modules/react-dom/cjs/react-dom.development.js:67:30)
at error (node_modules/react-dom/cjs/react-dom.development.js:43:5)
at warnIfNotCurrentlyActingUpdatesInDEV (node_modules/react-dom/cjs/react-dom.development.js:24064:9)
at setData (node_modules/react-dom/cjs/react-dom.development.js:16135:9)
at src/layouts/explainer/sections/national-debt/national-debt.jsx:649:11
console.error
Warning: An update to NationalDebtFifthSection inside a test was not wrapped in act(...).
When testing, code that causes React state updates should be wrapped into act(...):
act(() => {
/* fire events that update state */
});
/* assert on the output */
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act
at NationalDebtFifthSection (C:\Users\j4wgc01\projects\dtg\src\layouts\explainer\sections\national-debt\national-debt.jsx:549:45)
648 | if (transformed && transformed.length === 2) {
649 | setData(transformed);
> 650 | setDate(getDateWithoutOffset(transformed[1].record_date))
| ^
651 | }
652 | });
653 | }, []);
at printWarning (node_modules/react-dom/cjs/react-dom.development.js:67:30)
at error (node_modules/react-dom/cjs/react-dom.development.js:43:5)
at warnIfNotCurrentlyActingUpdatesInDEV (node_modules/react-dom/cjs/react-dom.development.js:24064:9)
at setDate (node_modules/react-dom/cjs/react-dom.development.js:16135:9)
at src/layouts/explainer/sections/national-debt/national-debt.jsx:650:11
console.error
Material-UI: The value provided to the Tabs component is invalid.
None of the Tabs' children match with `undefined`.
You can provide one of the following values: 0, 1, 2.
at getTabsMeta (node_modules/@material-ui/core/Tabs/Tabs.js:221:21)
at node_modules/@material-ui/core/Tabs/Tabs.js:238:24
at node_modules/@material-ui/core/utils/useEventCallback.js:25:29
at node_modules/@material-ui/core/Tabs/Tabs.js:398:5
at invokePassiveEffectCreate (node_modules/react-dom/cjs/react-dom.development.js:23487:20)
at HTMLUnknownElement.callCallback (node_modules/react-dom/cjs/react-dom.development.js:3945:14)
at HTMLUnknownElement.callTheUserObjectsOperation (node_modules/jsdom/lib/jsdom/living/generated/EventListener.js:26:30)
console.error
Material-UI: The value provided to the Tabs component is invalid.
None of the Tabs' children match with `undefined`.
You can provide one of the following values: 0, 1, 2.
at getTabsMeta (node_modules/@material-ui/core/Tabs/Tabs.js:221:21)
at node_modules/@material-ui/core/Tabs/Tabs.js:326:25
at node_modules/@material-ui/core/utils/useEventCallback.js:25:29
at node_modules/@material-ui/core/Tabs/Tabs.js:402:5
at invokePassiveEffectCreate (node_modules/react-dom/cjs/react-dom.development.js:23487:20)
at HTMLUnknownElement.callCallback (node_modules/react-dom/cjs/react-dom.development.js:3945:14)