Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Commit 5f5062f

Browse files
committed
test(components): removed jest-emotion and updated all snapshots
1 parent d5bdd6b commit 5f5062f

File tree

48 files changed

+300
-4084
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+300
-4084
lines changed

jest.config.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ module.exports = {
2020
breadstick: require.resolve('./tests/test-utils/module-mock.js')
2121
},
2222
snapshotSerializers: [
23-
'jest-serializer-vue',
24-
'jest-emotion'
23+
'jest-serializer-vue'
2524
],
2625
testMatch: [
2726
'**/**/*.test.(js|jsx|ts|tsx)|**/__tests__/*.(js|jsx|ts|tsx)'

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,6 @@
149149
"eslint-plugin-nuxt": ">=0.4.2",
150150
"eslint-plugin-prettier": "^3.1.2",
151151
"jest": "^25.1.0",
152-
"jest-emotion": "^10.0.32",
153152
"prettier": "^1.19.1",
154153
"rimraf": "^3.0.2",
155154
"rollup": "^1.31.1",

packages/chakra-ui-core/src/CAccordion/tests/__snapshots__/CAccordion.test.js.snap

Lines changed: 6 additions & 90 deletions
Original file line numberDiff line numberDiff line change
@@ -2,109 +2,25 @@
22

33
exports[`should render correctly 1`] = `
44
<DocumentFragment>
5-
.emotion-7 {
6-
border-top-width: 1px;
7-
}
8-
9-
.emotion-7:last-of-type {
10-
border-bottom-width: 1px;
11-
}
12-
13-
.emotion-4 {
14-
display: -webkit-box;
15-
display: -webkit-flex;
16-
display: -ms-flexbox;
17-
display: flex;
18-
-webkit-align-items: center;
19-
-webkit-box-align: center;
20-
-ms-flex-align: center;
21-
align-items: center;
22-
width: 100%;
23-
outline: 0;
24-
-webkit-transition: all 0.2s;
25-
transition: all 0.2s;
26-
padding-left: 1rem;
27-
padding-right: 1rem;
28-
padding-top: 0.5rem;
29-
padding-bottom: 0.5rem;
30-
}
31-
32-
.emotion-4:focus {
33-
box-shadow: 0 0 0 3px rgba(66,153,225,0.6);
34-
}
35-
36-
.emotion-4:hover {
37-
background-color: rgba(0,0,0,0.04);
38-
}
39-
40-
.emotion-4:disabled,
41-
.emotion-4:disabled:focus,
42-
.emotion-4:disabled:hover,
43-
.emotion-4[aria-disabled=true],
44-
.emotion-4[aria-disabled=true]:focus,
45-
.emotion-4[aria-disabled=true]:hover {
46-
opacity: 0.4;
47-
cursor: not-allowed;
48-
}
49-
50-
.emotion-3 {
51-
opacity: 1;
52-
-webkit-transform: rotate(-180deg);
53-
-ms-transform: rotate(-180deg);
54-
transform: rotate(-180deg);
55-
-webkit-transition: -webkit-transform 0.2s;
56-
-webkit-transition: transform 0.2s;
57-
transition: transform 0.2s;
58-
-webkit-transform-origin: center;
59-
-ms-transform-origin: center;
60-
transform-origin: center;
61-
}
62-
63-
.emotion-0 {
64-
-webkit-flex-shrink: 0;
65-
-ms-flex-negative: 0;
66-
flex-shrink: 0;
67-
-webkit-backface-visibility: hidden;
68-
backface-visibility: hidden;
69-
}
70-
71-
.emotion-0:not(:root) {
72-
overflow: hidden;
73-
}
74-
75-
.emotion-1 {
76-
width: 1em;
77-
height: 1em;
78-
display: inline-block;
79-
vertical-align: middle;
80-
}
81-
82-
.emotion-5 {
83-
padding-top: 0.5rem;
84-
padding-left: 1rem;
85-
padding-right: 1rem;
86-
padding-bottom: 1.25rem;
87-
}
88-
89-
<div
90-
class="emotion-2"
5+
<div
6+
class="css-0"
917
data-chakra-component="CAccordion"
928
>
939
<div
94-
class="emotion-2 emotion-7"
10+
class="css-0 css-1b3isn8"
9511
data-chakra-component="CAccordionItem"
9612
>
9713
<button
9814
aria-controls="accordion-panel-ac-1"
9915
aria-expanded="true"
100-
class="emotion-4"
16+
class="css-3q8x3d"
10117
data-chakra-component="CAccordionHeader"
10218
id="accordion-header-ac-1"
10319
type="button"
10420
>
10521
Section 1 title
10622
<svg
107-
class="emotion-0 emotion-1 emotion-2 emotion-3"
23+
class="css-12j51pv css-3vopgu css-0 css-1cdnf31"
10824
data-chakra-component="CAccordionIcon"
10925
role="presentation"
11026
viewBox="0 0 24 24"
@@ -124,7 +40,7 @@ exports[`should render correctly 1`] = `
12440
>
12541
<div
12642
aria-labelledby="accordion-header-ac-1"
127-
class="emotion-5"
43+
class="css-t2ecxu"
12844
data-chakra-component="CAccordionPanel"
12945
id="accordion-panel-ac-1"
13046
role="region"

0 commit comments

Comments
 (0)