1
1
// Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
3
+ exports[`overlay should not show a warning when "client.overlay" is "false": page html 1`] = `
4
+ "<body>
5
+ <script type=\\"text/javascript\\" charset=\\"utf-8\\" src=\\"/main.js\\"></script>
6
+ </body>
7
+ "
8
+ `;
9
+
10
+ exports[`overlay should not show a warning when "client.overlay.warnings" is "false": page html 1`] = `
11
+ "<body>
12
+ <script type=\\"text/javascript\\" charset=\\"utf-8\\" src=\\"/main.js\\"></script>
13
+ </body>
14
+ "
15
+ `;
16
+
17
+ exports[`overlay should not show an error when "client.overlay" is "false": page html 1`] = `
18
+ "<body>
19
+ <script type=\\"text/javascript\\" charset=\\"utf-8\\" src=\\"/main.js\\"></script>
20
+ </body>
21
+ "
22
+ `;
23
+
24
+ exports[`overlay should not show an error when "client.overlay.errors" is "false": page html 1`] = `
25
+ "<body>
26
+ <script type=\\"text/javascript\\" charset=\\"utf-8\\" src=\\"/main.js\\"></script>
27
+ </body>
28
+ "
29
+ `;
30
+
3
31
exports[`overlay should not show initially, then show on an error and allow to close: overlay html 1`] = `
4
32
"<body>
5
33
<div
@@ -314,35 +342,7 @@ exports[`overlay should not show initially, then show on an error, then show oth
314
342
"
315
343
`;
316
344
317
- exports[`overlay should not show on a warning when "client.overlay" is "false": page html 1`] = `
318
- "<body>
319
- <script type=\\"text/javascript\\" charset=\\"utf-8\\" src=\\"/main.js\\"></script>
320
- </body>
321
- "
322
- `;
323
-
324
- exports[`overlay should not show on a warning when "client.overlay.warnings" is "false": page html 1`] = `
325
- "<body>
326
- <script type=\\"text/javascript\\" charset=\\"utf-8\\" src=\\"/main.js\\"></script>
327
- </body>
328
- "
329
- `;
330
-
331
- exports[`overlay should not show on an error when "client.overlay" is "false": page html 1`] = `
332
- "<body>
333
- <script type=\\"text/javascript\\" charset=\\"utf-8\\" src=\\"/main.js\\"></script>
334
- </body>
335
- "
336
- `;
337
-
338
- exports[`overlay should not show on an error when "client.overlay.errors" is "false": page html 1`] = `
339
- "<body>
340
- <script type=\\"text/javascript\\" charset=\\"utf-8\\" src=\\"/main.js\\"></script>
341
- </body>
342
- "
343
- `;
344
-
345
- exports[`overlay should show on a warning and error for initial compilation and protects against xss: overlay html 1`] = `
345
+ exports[`overlay should show a warning and error for initial compilation and protects against xss: overlay html 1`] = `
346
346
"<body>
347
347
<div
348
348
id=\\"webpack-dev-server-client-overlay-div\\"
@@ -391,7 +391,7 @@ exports[`overlay should show on a warning and error for initial compilation and
391
391
"
392
392
`;
393
393
394
- exports[`overlay should show on a warning and error for initial compilation and protects against xss: page html 1`] = `
394
+ exports[`overlay should show a warning and error for initial compilation and protects against xss: page html 1`] = `
395
395
"<body>
396
396
<script type=\\"text/javascript\\" charset=\\"utf-8\\" src=\\"/main.js\\"></script>
397
397
<iframe
@@ -410,7 +410,7 @@ exports[`overlay should show on a warning and error for initial compilation and
410
410
"
411
411
`;
412
412
413
- exports[`overlay should show on a warning and error for initial compilation: overlay html 1`] = `
413
+ exports[`overlay should show a warning and error for initial compilation: overlay html 1`] = `
414
414
"<body>
415
415
<div
416
416
id=\\"webpack-dev-server-client-overlay-div\\"
@@ -474,7 +474,7 @@ exports[`overlay should show on a warning and error for initial compilation: ove
474
474
"
475
475
`;
476
476
477
- exports[`overlay should show on a warning and error for initial compilation: page html 1`] = `
477
+ exports[`overlay should show a warning and error for initial compilation: page html 1`] = `
478
478
"<body>
479
479
<script type=\\"text/javascript\\" charset=\\"utf-8\\" src=\\"/main.js\\"></script>
480
480
<iframe
@@ -493,7 +493,77 @@ exports[`overlay should show on a warning and error for initial compilation: pag
493
493
"
494
494
`;
495
495
496
- exports[`overlay should show on a warning for initial compilation: overlay html 1`] = `
496
+ exports[`overlay should show a warning and hide them after closing connection: overlay html 1`] = `
497
+ "<body>
498
+ <div
499
+ id=\\"webpack-dev-server-client-overlay-div\\"
500
+ style=\\"
501
+ position: fixed;
502
+ box-sizing: border-box;
503
+ inset: 0px;
504
+ width: 100vw;
505
+ height: 100vh;
506
+ background-color: rgba(0, 0, 0, 0.85);
507
+ color: rgb(232, 232, 232);
508
+ font-family: Menlo, Consolas, monospace;
509
+ font-size: large;
510
+ padding: 2rem;
511
+ line-height: 1.2;
512
+ white-space: pre-wrap;
513
+ overflow: auto;
514
+ \\"
515
+ >
516
+ <span>Compiled with problems:</span
517
+ ><button
518
+ style=\\"
519
+ background: transparent;
520
+ border: none;
521
+ font-size: 20px;
522
+ font-weight: bold;
523
+ color: white;
524
+ cursor: pointer;
525
+ float: right;
526
+ \\"
527
+ >
528
+ X</button
529
+ ><br /><br />
530
+ <div>
531
+ <span style=\\"color: rgb(227, 96, 73)\\">Warning:</span><br /><br />
532
+ <div>Warning from compilation</div>
533
+ <br /><br />
534
+ </div>
535
+ </div>
536
+ </body>
537
+ "
538
+ `;
539
+
540
+ exports[`overlay should show a warning and hide them after closing connection: page html 1`] = `
541
+ "<body>
542
+ <script type=\\"text/javascript\\" charset=\\"utf-8\\" src=\\"/main.js\\"></script>
543
+ <iframe
544
+ id=\\"webpack-dev-server-client-overlay\\"
545
+ src=\\"about:blank\\"
546
+ style=\\"
547
+ position: fixed;
548
+ inset: 0px;
549
+ width: 100vw;
550
+ height: 100vh;
551
+ border: none;
552
+ z-index: 2147483647;
553
+ \\"
554
+ ></iframe>
555
+ </body>
556
+ "
557
+ `;
558
+
559
+ exports[`overlay should show a warning and hide them after closing connection: page html 2`] = `
560
+ "<body>
561
+ <script type=\\"text/javascript\\" charset=\\"utf-8\\" src=\\"/main.js\\"></script>
562
+ </body>
563
+ "
564
+ `;
565
+
566
+ exports[`overlay should show a warning for initial compilation: overlay html 1`] = `
497
567
"<body>
498
568
<div
499
569
id=\\"webpack-dev-server-client-overlay-div\\"
@@ -537,7 +607,7 @@ exports[`overlay should show on a warning for initial compilation: overlay html
537
607
"
538
608
`;
539
609
540
- exports[`overlay should show on a warning for initial compilation: page html 1`] = `
610
+ exports[`overlay should show a warning for initial compilation: page html 1`] = `
541
611
"<body>
542
612
<script type=\\"text/javascript\\" charset=\\"utf-8\\" src=\\"/main.js\\"></script>
543
613
<iframe
@@ -556,7 +626,7 @@ exports[`overlay should show on a warning for initial compilation: page html 1`]
556
626
"
557
627
`;
558
628
559
- exports[`overlay should show on a warning when "client.overlay" is "true": overlay html 1`] = `
629
+ exports[`overlay should show a warning when "client.overlay" is "true": overlay html 1`] = `
560
630
"<body>
561
631
<div
562
632
id=\\"webpack-dev-server-client-overlay-div\\"
@@ -600,7 +670,7 @@ exports[`overlay should show on a warning when "client.overlay" is "true": overl
600
670
"
601
671
`;
602
672
603
- exports[`overlay should show on a warning when "client.overlay" is "true": page html 1`] = `
673
+ exports[`overlay should show a warning when "client.overlay" is "true": page html 1`] = `
604
674
"<body>
605
675
<script type=\\"text/javascript\\" charset=\\"utf-8\\" src=\\"/main.js\\"></script>
606
676
<iframe
@@ -619,7 +689,7 @@ exports[`overlay should show on a warning when "client.overlay" is "true": page
619
689
"
620
690
`;
621
691
622
- exports[`overlay should show on a warning when "client.overlay.errors" is "true": overlay html 1`] = `
692
+ exports[`overlay should show a warning when "client.overlay.errors" is "true": overlay html 1`] = `
623
693
"<body>
624
694
<div
625
695
id=\\"webpack-dev-server-client-overlay-div\\"
@@ -663,7 +733,7 @@ exports[`overlay should show on a warning when "client.overlay.errors" is "true"
663
733
"
664
734
`;
665
735
666
- exports[`overlay should show on a warning when "client.overlay.errors" is "true": page html 1`] = `
736
+ exports[`overlay should show a warning when "client.overlay.errors" is "true": page html 1`] = `
667
737
"<body>
668
738
<script type=\\"text/javascript\\" charset=\\"utf-8\\" src=\\"/main.js\\"></script>
669
739
<iframe
@@ -682,7 +752,7 @@ exports[`overlay should show on a warning when "client.overlay.errors" is "true"
682
752
"
683
753
`;
684
754
685
- exports[`overlay should show on a warning when "client.overlay.warnings" is "true": overlay html 1`] = `
755
+ exports[`overlay should show a warning when "client.overlay.warnings" is "true": overlay html 1`] = `
686
756
"<body>
687
757
<div
688
758
id=\\"webpack-dev-server-client-overlay-div\\"
@@ -726,7 +796,7 @@ exports[`overlay should show on a warning when "client.overlay.warnings" is "tru
726
796
"
727
797
`;
728
798
729
- exports[`overlay should show on a warning when "client.overlay.warnings" is "true": page html 1`] = `
799
+ exports[`overlay should show a warning when "client.overlay.warnings" is "true": page html 1`] = `
730
800
"<body>
731
801
<script type=\\"text/javascript\\" charset=\\"utf-8\\" src=\\"/main.js\\"></script>
732
802
<iframe
@@ -745,7 +815,7 @@ exports[`overlay should show on a warning when "client.overlay.warnings" is "tru
745
815
"
746
816
`;
747
817
748
- exports[`overlay should show on an ansi formatted error for initial compilation: overlay html 1`] = `
818
+ exports[`overlay should show an ansi formatted error for initial compilation: overlay html 1`] = `
749
819
"<body>
750
820
<div
751
821
id=\\"webpack-dev-server-client-overlay-div\\"
@@ -802,7 +872,7 @@ exports[`overlay should show on an ansi formatted error for initial compilation:
802
872
"
803
873
`;
804
874
805
- exports[`overlay should show on an ansi formatted error for initial compilation: page html 1`] = `
875
+ exports[`overlay should show an ansi formatted error for initial compilation: page html 1`] = `
806
876
"<body>
807
877
<script type=\\"text/javascript\\" charset=\\"utf-8\\" src=\\"/main.js\\"></script>
808
878
<iframe
@@ -821,7 +891,7 @@ exports[`overlay should show on an ansi formatted error for initial compilation:
821
891
"
822
892
`;
823
893
824
- exports[`overlay should show on an error for initial compilation: overlay html 1`] = `
894
+ exports[`overlay should show an error for initial compilation: overlay html 1`] = `
825
895
"<body>
826
896
<div
827
897
id=\\"webpack-dev-server-client-overlay-div\\"
@@ -865,7 +935,7 @@ exports[`overlay should show on an error for initial compilation: overlay html 1
865
935
"
866
936
`;
867
937
868
- exports[`overlay should show on an error for initial compilation: page html 1`] = `
938
+ exports[`overlay should show an error for initial compilation: page html 1`] = `
869
939
"<body>
870
940
<script type=\\"text/javascript\\" charset=\\"utf-8\\" src=\\"/main.js\\"></script>
871
941
<iframe
@@ -884,7 +954,7 @@ exports[`overlay should show on an error for initial compilation: page html 1`]
884
954
"
885
955
`;
886
956
887
- exports[`overlay should show on an error when "client.overlay" is "true": overlay html 1`] = `
957
+ exports[`overlay should show an error when "client.overlay" is "true": overlay html 1`] = `
888
958
"<body>
889
959
<div
890
960
id=\\"webpack-dev-server-client-overlay-div\\"
@@ -928,7 +998,7 @@ exports[`overlay should show on an error when "client.overlay" is "true": overla
928
998
"
929
999
`;
930
1000
931
- exports[`overlay should show on an error when "client.overlay" is "true": page html 1`] = `
1001
+ exports[`overlay should show an error when "client.overlay" is "true": page html 1`] = `
932
1002
"<body>
933
1003
<script type=\\"text/javascript\\" charset=\\"utf-8\\" src=\\"/main.js\\"></script>
934
1004
<iframe
@@ -947,7 +1017,7 @@ exports[`overlay should show on an error when "client.overlay" is "true": page h
947
1017
"
948
1018
`;
949
1019
950
- exports[`overlay should show on an error when "client.overlay.errors" is "true": overlay html 1`] = `
1020
+ exports[`overlay should show an error when "client.overlay.errors" is "true": overlay html 1`] = `
951
1021
"<body>
952
1022
<div
953
1023
id=\\"webpack-dev-server-client-overlay-div\\"
@@ -991,7 +1061,7 @@ exports[`overlay should show on an error when "client.overlay.errors" is "true":
991
1061
"
992
1062
`;
993
1063
994
- exports[`overlay should show on an error when "client.overlay.errors" is "true": page html 1`] = `
1064
+ exports[`overlay should show an error when "client.overlay.errors" is "true": page html 1`] = `
995
1065
"<body>
996
1066
<script type=\\"text/javascript\\" charset=\\"utf-8\\" src=\\"/main.js\\"></script>
997
1067
<iframe
@@ -1010,7 +1080,7 @@ exports[`overlay should show on an error when "client.overlay.errors" is "true":
1010
1080
"
1011
1081
`;
1012
1082
1013
- exports[`overlay should show on an error when "client.overlay.warnings" is "true": overlay html 1`] = `
1083
+ exports[`overlay should show an error when "client.overlay.warnings" is "true": overlay html 1`] = `
1014
1084
"<body>
1015
1085
<div
1016
1086
id=\\"webpack-dev-server-client-overlay-div\\"
@@ -1054,7 +1124,7 @@ exports[`overlay should show on an error when "client.overlay.warnings" is "true
1054
1124
"
1055
1125
`;
1056
1126
1057
- exports[`overlay should show on an error when "client.overlay.warnings" is "true": page html 1`] = `
1127
+ exports[`overlay should show an error when "client.overlay.warnings" is "true": page html 1`] = `
1058
1128
"<body>
1059
1129
<script type=\\"text/javascript\\" charset=\\"utf-8\\" src=\\"/main.js\\"></script>
1060
1130
<iframe
0 commit comments