Skip to content

Commit 9a4e368

Browse files
committed
Bump jest
1 parent 72a74d2 commit 9a4e368

File tree

10 files changed

+4114
-2183
lines changed

10 files changed

+4114
-2183
lines changed

package-lock.json

Lines changed: 4014 additions & 2113 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"@babel/preset-react": "^7.18.6",
3737
"@testing-library/react": "^13.3.0",
3838
"babel-eslint": "^10.1.0",
39-
"babel-jest": "^28.1.2",
39+
"babel-jest": "^29.7.0",
4040
"babel-plugin-add-module-exports": "^1.0.4",
4141
"babel-plugin-transform-react-remove-prop-types": "^0.4.24",
4242
"caniuse-api": "^3.0.0",
@@ -53,8 +53,8 @@
5353
"glob": "^8.0.3",
5454
"husky": "^8.0.0",
5555
"inline-style-prefixer": "^6.0.0",
56-
"jest": "^28.1.2",
57-
"jest-environment-jsdom": "^28.1.2",
56+
"jest": "^29.7.0",
57+
"jest-environment-jsdom": "^29.7.0",
5858
"lint-staged": "^13.0.3",
5959
"minimist": "^1.2.6",
6060
"npm-run-all": "^4.1.3",
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
// Jest Snapshot v1, https://goo.gl/fbAQLP
2+
3+
exports[`AppRegistry runApplication styles roots in different documents 1`] = `
4+
[
5+
"[stylesheet-group="0"] {}",
6+
"body {margin: 0;}",
7+
"button::-moz-focus-inner,input::-moz-focus-inner {border: 0; padding: 0;}",
8+
"html {-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: rgba(0,0,0,0);}",
9+
"input::-webkit-search-cancel-button,input::-webkit-search-decoration,input::-webkit-search-results-button,input::-webkit-search-results-decoration {display: none;}",
10+
"[stylesheet-group="1"] {}",
11+
".css-view-175oi2r {align-items: stretch; background-color: rgba(0,0,0,0.00); border: 0 solid black; box-sizing: border-box; display: flex; flex-basis: auto; flex-direction: column; flex-shrink: 0; list-style: none; margin: 0px; min-height: 0px; min-width: 0px; padding: 0px; position: relative; text-decoration: none; z-index: 0;}",
12+
"[stylesheet-group="2"] {}",
13+
".r-display-xoduu5 {display: inline-flex;}",
14+
".r-flex-13awgt0 {flex: 1;}",
15+
"[stylesheet-group="3"] {}",
16+
".r-bottom-1p0dtai {bottom: 0px;}",
17+
".r-left-1d2f490 {left: 0px;}",
18+
".r-pointerEvents-105ug2t {pointer-events: auto !important;}",
19+
".r-pointerEvents-12vffkv>* {pointer-events: auto;}",
20+
".r-pointerEvents-12vffkv {pointer-events: none !important;}",
21+
".r-pointerEvents-633pao {pointer-events: none !important;}",
22+
".r-pointerEvents-ah5dr5>* {pointer-events: none;}",
23+
".r-pointerEvents-ah5dr5 {pointer-events: auto !important;}",
24+
".r-position-u8s1d {position: absolute;}",
25+
".r-right-zchlnj {right: 0px;}",
26+
".r-top-ipm5af {top: 0px;}",
27+
]
28+
`;
29+
30+
exports[`AppRegistry runApplication styles roots in different documents 2`] = `
31+
[
32+
"[stylesheet-group="0"] {}",
33+
"body {margin: 0;}",
34+
"button::-moz-focus-inner,input::-moz-focus-inner {border: 0; padding: 0;}",
35+
"html {-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: rgba(0,0,0,0);}",
36+
"input::-webkit-search-cancel-button,input::-webkit-search-decoration,input::-webkit-search-results-button,input::-webkit-search-results-decoration {display: none;}",
37+
"[stylesheet-group="1"] {}",
38+
".css-view-175oi2r {align-items: stretch; background-color: rgba(0,0,0,0.00); border: 0 solid black; box-sizing: border-box; display: flex; flex-basis: auto; flex-direction: column; flex-shrink: 0; list-style: none; margin: 0px; min-height: 0px; min-width: 0px; padding: 0px; position: relative; text-decoration: none; z-index: 0;}",
39+
"[stylesheet-group="2"] {}",
40+
".r-display-xoduu5 {display: inline-flex;}",
41+
".r-flex-13awgt0 {flex: 1;}",
42+
"[stylesheet-group="3"] {}",
43+
".r-bottom-1p0dtai {bottom: 0px;}",
44+
".r-left-1d2f490 {left: 0px;}",
45+
".r-pointerEvents-105ug2t {pointer-events: auto !important;}",
46+
".r-pointerEvents-12vffkv>* {pointer-events: auto;}",
47+
".r-pointerEvents-12vffkv {pointer-events: none !important;}",
48+
".r-pointerEvents-633pao {pointer-events: none !important;}",
49+
".r-pointerEvents-ah5dr5>* {pointer-events: none;}",
50+
".r-pointerEvents-ah5dr5 {pointer-events: auto !important;}",
51+
".r-position-u8s1d {position: absolute;}",
52+
".r-right-zchlnj {right: 0px;}",
53+
".r-top-ipm5af {top: 0px;}",
54+
]
55+
`;

packages/react-native-web/src/exports/AppRegistry/__tests__/index-test.js

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -101,32 +101,7 @@ describe.each([['concurrent'], ['legacy']])('AppRegistry', (mode) => {
101101
)
102102
.map((cssRule) => cssRule.cssText);
103103

104-
expect(cssText).toMatchInlineSnapshot(`
105-
[
106-
"[stylesheet-group=\\"0\\"] {}",
107-
"body {margin: 0;}",
108-
"button::-moz-focus-inner,input::-moz-focus-inner {border: 0; padding: 0;}",
109-
"html {-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: rgba(0,0,0,0);}",
110-
"input::-webkit-search-cancel-button,input::-webkit-search-decoration,input::-webkit-search-results-button,input::-webkit-search-results-decoration {display: none;}",
111-
"[stylesheet-group=\\"1\\"] {}",
112-
".css-view-175oi2r {align-items: stretch; background-color: rgba(0,0,0,0.00); border: 0 solid black; box-sizing: border-box; display: flex; flex-basis: auto; flex-direction: column; flex-shrink: 0; list-style: none; margin: 0px; min-height: 0px; min-width: 0px; padding: 0px; position: relative; text-decoration: none; z-index: 0;}",
113-
"[stylesheet-group=\\"2\\"] {}",
114-
".r-display-xoduu5 {display: inline-flex;}",
115-
".r-flex-13awgt0 {flex: 1;}",
116-
"[stylesheet-group=\\"3\\"] {}",
117-
".r-bottom-1p0dtai {bottom: 0px;}",
118-
".r-left-1d2f490 {left: 0px;}",
119-
".r-pointerEvents-105ug2t {pointer-events: auto !important;}",
120-
".r-pointerEvents-12vffkv>* {pointer-events: auto;}",
121-
".r-pointerEvents-12vffkv {pointer-events: none !important;}",
122-
".r-pointerEvents-633pao {pointer-events: none !important;}",
123-
".r-pointerEvents-ah5dr5>* {pointer-events: none;}",
124-
".r-pointerEvents-ah5dr5 {pointer-events: auto !important;}",
125-
".r-position-u8s1d {position: absolute;}",
126-
".r-right-zchlnj {right: 0px;}",
127-
".r-top-ipm5af {top: 0px;}",
128-
]
129-
`);
104+
expect(cssText).toMatchSnapshot();
130105
});
131106
});
132107
});

packages/react-native-web/src/exports/AppRegistry/__tests__/index-test.node.js

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -39,21 +39,21 @@ describe('AppRegistry', () => {
3939
</AppContainer>
4040
`);
4141
expect(styleElement).toMatchInlineSnapshot(`
42-
"<style id=\\"react-native-stylesheet\\">[stylesheet-group=\\"0\\"]{}
42+
"<style id="react-native-stylesheet">[stylesheet-group="0"]{}
4343
body{margin:0;}
4444
button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0;}
4545
html{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:rgba(0,0,0,0);}
4646
input::-webkit-search-cancel-button,input::-webkit-search-decoration,input::-webkit-search-results-button,input::-webkit-search-results-decoration{display:none;}
47-
[stylesheet-group=\\"1\\"]{}
48-
.css-text-146c3p1{background-color:rgba(0,0,0,0.00);border:0 solid black;box-sizing:border-box;color:rgba(0,0,0,1.00);display:inline;font:14px -apple-system,BlinkMacSystemFont,\\"Segoe UI\\",Roboto,Helvetica,Arial,sans-serif;list-style:none;margin:0px;padding:0px;position:relative;text-align:start;text-decoration:none;white-space:pre-wrap;word-wrap:break-word;}
47+
[stylesheet-group="1"]{}
48+
.css-text-146c3p1{background-color:rgba(0,0,0,0.00);border:0 solid black;box-sizing:border-box;color:rgba(0,0,0,1.00);display:inline;font:14px -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;list-style:none;margin:0px;padding:0px;position:relative;text-align:start;text-decoration:none;white-space:pre-wrap;word-wrap:break-word;}
4949
.css-textHasAncestor-1jxf684{background-color:rgba(0,0,0,0.00);border:0 solid black;box-sizing:border-box;color:inherit;display:inline;font:inherit;list-style:none;margin:0px;padding:0px;position:relative;text-align:inherit;text-decoration:none;white-space:inherit;word-wrap:break-word;}
5050
.css-view-175oi2r{align-items:stretch;background-color:rgba(0,0,0,0.00);border:0 solid black;box-sizing:border-box;display:flex;flex-basis:auto;flex-direction:column;flex-shrink:0;list-style:none;margin:0px;min-height:0px;min-width:0px;padding:0px;position:relative;text-decoration:none;z-index:0;}
51-
[stylesheet-group=\\"2\\"]{}
51+
[stylesheet-group="2"]{}
5252
.r-display-krxsd3{display:-webkit-box;}
5353
.r-display-xoduu5{display:inline-flex;}
5454
.r-flex-13awgt0{flex:1;}
5555
.r-overflow-1udh08x{overflow-x:hidden;overflow-y:hidden;}
56-
[stylesheet-group=\\"3\\"]{}
56+
[stylesheet-group="3"]{}
5757
.r-WebkitBoxOrient-8akbws{-webkit-box-orient:vertical;}
5858
.r-bottom-1p0dtai{bottom:0px;}
5959
.r-cursor-1loqt21{cursor:pointer;}
@@ -96,21 +96,21 @@ describe('AppRegistry', () => {
9696
AppRegistry.registerComponent('App', () => RootComponent);
9797
const first = getApplicationStyles('App');
9898
expect(first).toMatchInlineSnapshot(`
99-
"[stylesheet-group=\\"0\\"]{}
99+
"[stylesheet-group="0"]{}
100100
body{margin:0;}
101101
button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0;}
102102
html{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:rgba(0,0,0,0);}
103103
input::-webkit-search-cancel-button,input::-webkit-search-decoration,input::-webkit-search-results-button,input::-webkit-search-results-decoration{display:none;}
104-
[stylesheet-group=\\"1\\"]{}
105-
.css-text-146c3p1{background-color:rgba(0,0,0,0.00);border:0 solid black;box-sizing:border-box;color:rgba(0,0,0,1.00);display:inline;font:14px -apple-system,BlinkMacSystemFont,\\"Segoe UI\\",Roboto,Helvetica,Arial,sans-serif;list-style:none;margin:0px;padding:0px;position:relative;text-align:start;text-decoration:none;white-space:pre-wrap;word-wrap:break-word;}
104+
[stylesheet-group="1"]{}
105+
.css-text-146c3p1{background-color:rgba(0,0,0,0.00);border:0 solid black;box-sizing:border-box;color:rgba(0,0,0,1.00);display:inline;font:14px -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;list-style:none;margin:0px;padding:0px;position:relative;text-align:start;text-decoration:none;white-space:pre-wrap;word-wrap:break-word;}
106106
.css-textHasAncestor-1jxf684{background-color:rgba(0,0,0,0.00);border:0 solid black;box-sizing:border-box;color:inherit;display:inline;font:inherit;list-style:none;margin:0px;padding:0px;position:relative;text-align:inherit;text-decoration:none;white-space:inherit;word-wrap:break-word;}
107107
.css-view-175oi2r{align-items:stretch;background-color:rgba(0,0,0,0.00);border:0 solid black;box-sizing:border-box;display:flex;flex-basis:auto;flex-direction:column;flex-shrink:0;list-style:none;margin:0px;min-height:0px;min-width:0px;padding:0px;position:relative;text-decoration:none;z-index:0;}
108-
[stylesheet-group=\\"2\\"]{}
108+
[stylesheet-group="2"]{}
109109
.r-display-krxsd3{display:-webkit-box;}
110110
.r-display-xoduu5{display:inline-flex;}
111111
.r-flex-13awgt0{flex:1;}
112112
.r-overflow-1udh08x{overflow-x:hidden;overflow-y:hidden;}
113-
[stylesheet-group=\\"3\\"]{}
113+
[stylesheet-group="3"]{}
114114
.r-WebkitBoxOrient-8akbws{-webkit-box-orient:vertical;}
115115
.r-bottom-1p0dtai{bottom:0px;}
116116
.r-cursor-1loqt21{cursor:pointer;}
@@ -144,22 +144,22 @@ describe('AppRegistry', () => {
144144
);
145145
const second = getApplicationStyles('AlternativeApp');
146146
expect(second).toMatchInlineSnapshot(`
147-
"[stylesheet-group=\\"0\\"]{}
147+
"[stylesheet-group="0"]{}
148148
body{margin:0;}
149149
button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0;}
150150
html{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:rgba(0,0,0,0);}
151151
input::-webkit-search-cancel-button,input::-webkit-search-decoration,input::-webkit-search-results-button,input::-webkit-search-results-decoration{display:none;}
152-
[stylesheet-group=\\"1\\"]{}
153-
.css-text-146c3p1{background-color:rgba(0,0,0,0.00);border:0 solid black;box-sizing:border-box;color:rgba(0,0,0,1.00);display:inline;font:14px -apple-system,BlinkMacSystemFont,\\"Segoe UI\\",Roboto,Helvetica,Arial,sans-serif;list-style:none;margin:0px;padding:0px;position:relative;text-align:start;text-decoration:none;white-space:pre-wrap;word-wrap:break-word;}
152+
[stylesheet-group="1"]{}
153+
.css-text-146c3p1{background-color:rgba(0,0,0,0.00);border:0 solid black;box-sizing:border-box;color:rgba(0,0,0,1.00);display:inline;font:14px -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;list-style:none;margin:0px;padding:0px;position:relative;text-align:start;text-decoration:none;white-space:pre-wrap;word-wrap:break-word;}
154154
.css-textHasAncestor-1jxf684{background-color:rgba(0,0,0,0.00);border:0 solid black;box-sizing:border-box;color:inherit;display:inline;font:inherit;list-style:none;margin:0px;padding:0px;position:relative;text-align:inherit;text-decoration:none;white-space:inherit;word-wrap:break-word;}
155155
.css-view-175oi2r{align-items:stretch;background-color:rgba(0,0,0,0.00);border:0 solid black;box-sizing:border-box;display:flex;flex-basis:auto;flex-direction:column;flex-shrink:0;list-style:none;margin:0px;min-height:0px;min-width:0px;padding:0px;position:relative;text-decoration:none;z-index:0;}
156-
[stylesheet-group=\\"2\\"]{}
156+
[stylesheet-group="2"]{}
157157
.r-borderWidth-1bee2fs{border-bottom-width:1234px;border-left-width:1234px;border-right-width:1234px;border-top-width:1234px;}
158158
.r-display-krxsd3{display:-webkit-box;}
159159
.r-display-xoduu5{display:inline-flex;}
160160
.r-flex-13awgt0{flex:1;}
161161
.r-overflow-1udh08x{overflow-x:hidden;overflow-y:hidden;}
162-
[stylesheet-group=\\"3\\"]{}
162+
[stylesheet-group="3"]{}
163163
.r-WebkitBoxOrient-8akbws{-webkit-box-orient:vertical;}
164164
.r-backgroundColor-aot4c7{background-color:rgba(128,0,128,1.00);}
165165
.r-bottom-1p0dtai{bottom:0px;}

packages/react-native-web/src/exports/StyleSheet/__tests__/compiler-createReactDOMStyle-test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -149,13 +149,13 @@ describe('compiler/createReactDOMStyle', () => {
149149
expect(createReactDOMStyle({ fontFamily: 'System' }))
150150
.toMatchInlineSnapshot(`
151151
{
152-
"fontFamily": "-apple-system,BlinkMacSystemFont,\\"Segoe UI\\",Roboto,Helvetica,Arial,sans-serif",
152+
"fontFamily": "-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif",
153153
}
154154
`);
155155
expect(createReactDOMStyle({ font: '14px System' }))
156156
.toMatchInlineSnapshot(`
157157
{
158-
"font": "14px -apple-system,BlinkMacSystemFont,\\"Segoe UI\\",Roboto,Helvetica,Arial,sans-serif",
158+
"font": "14px -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif",
159159
}
160160
`);
161161
});
@@ -164,13 +164,13 @@ describe('compiler/createReactDOMStyle', () => {
164164
expect(createReactDOMStyle({ fontFamily: 'Noto, System' }))
165165
.toMatchInlineSnapshot(`
166166
{
167-
"fontFamily": "Noto,-apple-system,BlinkMacSystemFont,\\"Segoe UI\\",Roboto,Helvetica,Arial,sans-serif",
167+
"fontFamily": "Noto,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif",
168168
}
169169
`);
170170
expect(createReactDOMStyle({ font: '14px Noto, System' }))
171171
.toMatchInlineSnapshot(`
172172
{
173-
"font": "14px Noto, -apple-system,BlinkMacSystemFont,\\"Segoe UI\\",Roboto,Helvetica,Arial,sans-serif",
173+
"font": "14px Noto, -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif",
174174
}
175175
`);
176176
});

packages/react-native-web/src/exports/StyleSheet/__tests__/compiler-test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ describe('StyleSheet/compile', () => {
7979
],
8080
[
8181
[
82-
".r-fontFamily-1qd0xha{font-family:-apple-system,BlinkMacSystemFont,\\"Segoe UI\\",Roboto,Helvetica,Arial,sans-serif;}",
82+
".r-fontFamily-1qd0xha{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;}",
8383
],
8484
3,
8585
],
@@ -206,7 +206,7 @@ describe('StyleSheet/compile', () => {
206206
"@keyframes r-animation-8jhqzh{0%{top:0px;}50%{top:5px;}100%{top:10px;}}",
207207
"@-webkit-keyframes r-animation-5azpl5{from{left:0px;}to{left:10px;}}",
208208
"@keyframes r-animation-5azpl5{from{left:0px;}to{left:10px;}}",
209-
".css-test-tbk4su{animation-direction:alternate,alternate-reverse;animation-name:r-animation-8jhqzh,r-animation-5azpl5;font:14px -apple-system,BlinkMacSystemFont,\\"Segoe UI\\",Roboto,Helvetica,Arial,sans-serif;margin-left:10px;margin-right:10px;transform:translateX(50px) scale(-1);}",
209+
".css-test-tbk4su{animation-direction:alternate,alternate-reverse;animation-name:r-animation-8jhqzh,r-animation-5azpl5;font:14px -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;margin-left:10px;margin-right:10px;transform:translateX(50px) scale(-1);}",
210210
],
211211
1,
212212
],

packages/react-native-web/src/exports/StyleSheet/__tests__/dom-createOrderedCSSStyleSheet-test.js

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -27,20 +27,20 @@ describe('createOrderedCSSStyleSheet', () => {
2727

2828
sheet.insert('.a {}', 0);
2929
expect(sheet.getTextContent()).toMatchInlineSnapshot(`
30-
"[stylesheet-group=\\"0\\"]{}
30+
"[stylesheet-group="0"]{}
3131
.a {}"
3232
`);
3333

3434
sheet.insert('.b {}', 0);
3535
expect(sheet.getTextContent()).toMatchInlineSnapshot(`
36-
"[stylesheet-group=\\"0\\"]{}
36+
"[stylesheet-group="0"]{}
3737
.a {}
3838
.b {}"
3939
`);
4040

4141
sheet.insert('.c {}', 0);
4242
expect(sheet.getTextContent()).toMatchInlineSnapshot(`
43-
"[stylesheet-group=\\"0\\"]{}
43+
"[stylesheet-group="0"]{}
4444
.a {}
4545
.b {}
4646
.c {}"
@@ -55,7 +55,7 @@ describe('createOrderedCSSStyleSheet', () => {
5555
sheet.insert('.a {}', 0);
5656

5757
expect(sheet.getTextContent()).toMatchInlineSnapshot(`
58-
"[stylesheet-group=\\"0\\"]{}
58+
"[stylesheet-group="0"]{}
5959
.a {}"
6060
`);
6161
});
@@ -68,7 +68,7 @@ describe('createOrderedCSSStyleSheet', () => {
6868
sheet.insert('.a {}', 0);
6969

7070
expect(sheet.getTextContent()).toMatchInlineSnapshot(`
71-
"[stylesheet-group=\\"0\\"]{}
71+
"[stylesheet-group="0"]{}
7272
.a {}
7373
.b {}
7474
.c {}"
@@ -90,23 +90,23 @@ describe('createOrderedCSSStyleSheet', () => {
9090
sheet.insert('.twenty-point2 {}', 20.2);
9191

9292
expect(sheet.getTextContent()).toMatchInlineSnapshot(`
93-
"[stylesheet-group=\\"1\\"]{}
93+
"[stylesheet-group="1"]{}
9494
.one {}
95-
[stylesheet-group=\\"2.2\\"]{}
95+
[stylesheet-group="2.2"]{}
9696
.two {}
97-
[stylesheet-group=\\"3\\"]{}
97+
[stylesheet-group="3"]{}
9898
.three {}
99-
[stylesheet-group=\\"4\\"]{}
99+
[stylesheet-group="4"]{}
100100
.four-1 {}
101101
.four-2 {}
102-
[stylesheet-group=\\"9.9\\"]{}
102+
[stylesheet-group="9.9"]{}
103103
.nine-1 {}
104104
.nine-2 {}
105-
[stylesheet-group=\\"10\\"]{}
105+
[stylesheet-group="10"]{}
106106
.ten {}
107-
[stylesheet-group=\\"20\\"]{}
107+
[stylesheet-group="20"]{}
108108
.twenty {}
109-
[stylesheet-group=\\"20.2\\"]{}
109+
[stylesheet-group="20.2"]{}
110110
.twenty-point2 {}"
111111
`);
112112
});
@@ -135,9 +135,9 @@ describe('createOrderedCSSStyleSheet', () => {
135135
element.appendChild(document.createTextNode(textContent));
136136
const clientSheet = createOrderedCSSStyleSheet(element.sheet);
137137
expect(clientSheet.getTextContent()).toMatchInlineSnapshot(`
138-
"[stylesheet-group=\\"1\\"] {}
138+
"[stylesheet-group="1"] {}
139139
.one {width: 10px;}
140-
[stylesheet-group=\\"2\\"] {}
140+
[stylesheet-group="2"] {}
141141
.two-1 {height: 20px;}
142142
.two-2 {color: red;}
143143
@keyframes anim {

0 commit comments

Comments
 (0)