Skip to content

Commit f16cf7d

Browse files
committed
update snapshots to account for changes in later sc v5 betas
we do not enforce staticness in the test environment anymore, so the emitted classname will be incremented by one now
1 parent 8c2ea4a commit f16cf7d

File tree

4 files changed

+2226
-2112
lines changed

4 files changed

+2226
-2112
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"react-is": "^16.8.6",
5050
"react-native": "^0.59.9",
5151
"react-test-renderer": "^16.8.0",
52-
"styled-components": "beta",
52+
"styled-components": "5.0.0-rc.1",
5353
"typescript": "^3.0.3"
5454
},
5555
"dependencies": {

test/__snapshots__/styleSheetSerializer.spec.js.snap

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ exports[`non-styled: shallow 1`] = `<div />`;
400400
exports[`null 1`] = `null`;
401401

402402
exports[`referring to other components: mount 1`] = `
403-
.c0 {
403+
.c1 {
404404
display: -webkit-box;
405405
display: -webkit-flex;
406406
display: -ms-flexbox;
@@ -414,18 +414,18 @@ exports[`referring to other components: mount 1`] = `
414414
color: palevioletred;
415415
}
416416
417-
.c1 {
417+
.c2 {
418418
-webkit-transition: fill 0.25s;
419419
transition: fill 0.25s;
420420
width: 48px;
421421
height: 48px;
422422
}
423423
424-
.c0:hover .c1 {
424+
.c0:hover .c2 {
425425
fill: rebeccapurple;
426426
}
427427
428-
.c2 {
428+
.c3 {
429429
display: -webkit-box;
430430
display: -webkit-flex;
431431
display: -ms-flexbox;
@@ -437,17 +437,17 @@ exports[`referring to other components: mount 1`] = `
437437
line-height: 1.2;
438438
}
439439
440-
.c2::before {
440+
.c3::before {
441441
content: '';
442442
margin: 0 10px;
443443
}
444444
445-
.sc-fzXfLU .c3 {
445+
.sc-fzXfLU .c4 {
446446
color: yellow;
447447
background-color: green;
448448
}
449449
450-
.sc-fzXfLU .c4 {
450+
.sc-fzXfLU .c5 {
451451
color: yellow;
452452
background-color: red;
453453
}
@@ -456,24 +456,24 @@ exports[`referring to other components: mount 1`] = `
456456
href="#"
457457
>
458458
<a
459-
className="c0"
459+
className="c0 c1"
460460
href="#"
461461
>
462462
<styled.svg>
463463
<svg
464-
className="c1"
464+
className="c2"
465465
/>
466466
</styled.svg>
467467
<styled.span>
468468
<span
469-
className="c2"
469+
className="c3"
470470
>
471471
Hovering my parent changes my style!
472472
</span>
473473
</styled.span>
474474
<styled.span>
475475
<span
476-
className="c3"
476+
className="c4"
477477
>
478478
I should be green
479479
</span>
@@ -482,7 +482,7 @@ exports[`referring to other components: mount 1`] = `
482482
error={true}
483483
>
484484
<span
485-
className="c4"
485+
className="c5"
486486
>
487487
I should be red
488488
</span>
@@ -492,7 +492,7 @@ exports[`referring to other components: mount 1`] = `
492492
`;
493493

494494
exports[`referring to other components: react-test-renderer 1`] = `
495-
.c0 {
495+
.c1 {
496496
display: -webkit-box;
497497
display: -webkit-flex;
498498
display: -ms-flexbox;
@@ -506,18 +506,18 @@ exports[`referring to other components: react-test-renderer 1`] = `
506506
color: palevioletred;
507507
}
508508
509-
.c1 {
509+
.c2 {
510510
-webkit-transition: fill 0.25s;
511511
transition: fill 0.25s;
512512
width: 48px;
513513
height: 48px;
514514
}
515515
516-
.c0:hover .c1 {
516+
.c0:hover .c2 {
517517
fill: rebeccapurple;
518518
}
519519
520-
.c2 {
520+
.c3 {
521521
display: -webkit-box;
522522
display: -webkit-flex;
523523
display: -ms-flexbox;
@@ -529,48 +529,48 @@ exports[`referring to other components: react-test-renderer 1`] = `
529529
line-height: 1.2;
530530
}
531531
532-
.c2::before {
532+
.c3::before {
533533
content: '';
534534
margin: 0 10px;
535535
}
536536
537-
.sc-fzXfLU .c3 {
537+
.sc-fzXfLU .c4 {
538538
color: yellow;
539539
background-color: green;
540540
}
541541
542-
.sc-fzXfLU .c4 {
542+
.sc-fzXfLU .c5 {
543543
color: yellow;
544544
background-color: red;
545545
}
546546
547547
<a
548-
className="c0"
548+
className="c0 c1"
549549
href="#"
550550
>
551551
<svg
552-
className="c1"
552+
className="c2"
553553
/>
554554
<span
555-
className="c2"
555+
className="c3"
556556
>
557557
Hovering my parent changes my style!
558558
</span>
559559
<span
560-
className="c3"
560+
className="c4"
561561
>
562562
I should be green
563563
</span>
564564
<span
565-
className="c4"
565+
className="c5"
566566
>
567567
I should be red
568568
</span>
569569
</a>
570570
`;
571571

572572
exports[`referring to other components: react-testing-library 1`] = `
573-
.c0 {
573+
.c1 {
574574
display: -webkit-box;
575575
display: -webkit-flex;
576576
display: -ms-flexbox;
@@ -584,18 +584,18 @@ exports[`referring to other components: react-testing-library 1`] = `
584584
color: palevioletred;
585585
}
586586
587-
.c1 {
587+
.c2 {
588588
-webkit-transition: fill 0.25s;
589589
transition: fill 0.25s;
590590
width: 48px;
591591
height: 48px;
592592
}
593593
594-
.c0:hover .c1 {
594+
.c0:hover .c2 {
595595
fill: rebeccapurple;
596596
}
597597
598-
.c2 {
598+
.c3 {
599599
display: -webkit-box;
600600
display: -webkit-flex;
601601
display: -ms-flexbox;
@@ -607,40 +607,40 @@ exports[`referring to other components: react-testing-library 1`] = `
607607
line-height: 1.2;
608608
}
609609
610-
.c2::before {
610+
.c3::before {
611611
content: '';
612612
margin: 0 10px;
613613
}
614614
615-
.sc-fzXfLU .c3 {
615+
.sc-fzXfLU .c4 {
616616
color: yellow;
617617
background-color: green;
618618
}
619619
620-
.sc-fzXfLU .c4 {
620+
.sc-fzXfLU .c5 {
621621
color: yellow;
622622
background-color: red;
623623
}
624624
625625
<a
626-
class="c0"
626+
class="c0 c1"
627627
href="#"
628628
>
629629
<svg
630-
class="c1"
630+
class="c2"
631631
/>
632632
<span
633-
class="c2"
633+
class="c3"
634634
>
635635
Hovering my parent changes my style!
636636
</span>
637637
<span
638-
class="c3"
638+
class="c4"
639639
>
640640
I should be green
641641
</span>
642642
<span
643-
class="c4"
643+
class="c5"
644644
>
645645
I should be red
646646
</span>

0 commit comments

Comments
 (0)