Skip to content

Commit 67a4fce

Browse files
vladarhoobdeebla
andauthored
fix(tests): update cheerio snapshots (#31298) (#31483)
(cherry picked from commit e06599d) # Conflicts: # packages/gatsby-plugin-offline/package.json # packages/gatsby-remark-images/package.json # packages/gatsby-remark-prismjs/package.json Co-authored-by: Adam Schay <[email protected]>
1 parent 102d92c commit 67a4fce

File tree

13 files changed

+68
-42
lines changed

13 files changed

+68
-42
lines changed

packages/babel-plugin-remove-graphql-queries/src/__tests__/__snapshots__/index.js.snap

+52-26
Large diffs are not rendered by default.

packages/gatsby-plugin-offline/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
},
99
"dependencies": {
1010
"@babel/runtime": "^7.12.5",
11-
"cheerio": "^1.0.0-rc.3",
11+
"cheerio": "^1.0.0-rc.9",
1212
"gatsby-core-utils": "^2.5.0",
1313
"glob": "^7.1.6",
1414
"idb-keyval": "^3.2.0",

packages/gatsby-remark-copy-linked-files/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
},
99
"dependencies": {
1010
"@babel/runtime": "^7.12.5",
11-
"cheerio": "^1.0.0-rc.8",
11+
"cheerio": "^1.0.0-rc.9",
1212
"fs-extra": "^8.1.0",
1313
"is-relative-url": "^3.0.0",
1414
"lodash": "^4.17.21",

packages/gatsby-remark-graphviz/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
},
99
"dependencies": {
1010
"@babel/runtime": "^7.12.5",
11-
"cheerio": "^1.0.0-rc.3",
11+
"cheerio": "^1.0.0-rc.9",
1212
"unist-util-visit": "^2.0.3",
1313
"viz.js": "^2.1.2"
1414
},

packages/gatsby-remark-images-contentful/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"@babel/runtime": "^7.12.5",
1919
"axios": "^0.21.1",
2020
"chalk": "^4.1.0",
21-
"cheerio": "^1.0.0-rc.3",
21+
"cheerio": "^1.0.0-rc.9",
2222
"is-relative-url": "^3.0.0",
2323
"lodash": "^4.17.21",
2424
"semver": "^7.3.2",

packages/gatsby-remark-images-contentful/src/__tests__/__snapshots__/index.js.snap

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
exports[`it transforms HTML img tags 1`] = `
44
"<a class=\\"gatsby-resp-image-link\\" href=\\"https://images.ctfassets.net/rocybtov1ozk/wtrHxeu3zEoEce2MokCSi/73dce36715f16e27cf5ff0d2d97d7dff/quwowooybuqbl6ntboz3.jpg\\" style=\\"display: block\\" target=\\"_blank\\" rel=\\"noopener\\">
55
<span class=\\"gatsby-resp-image-wrapper\\" style=\\"position: relative; display: block; ; max-width: 600px; margin-left: auto; margin-right: auto;\\">
6-
<span class=\\"gatsby-resp-image-background-image\\" style=\\"padding-bottom: 100%; position: relative; bottom: 0; left: 0; background-image: url(&apos;data:image;&apos;); background-size: cover; display: block;\\">
7-
<img class=\\"gatsby-resp-image-image\\" style=\\"width: 100%; height: 100%; margin: 0; vertical-align: middle; position: absolute; top: 0; left: 0; box-shadow: inset 0px 0px 0px 400px white;\\" alt=\\"quwowooybuqbl6ntboz3\\" title src=\\"https://images.ctfassets.net/rocybtov1ozk/wtrHxeu3zEoEce2MokCSi/73dce36715f16e27cf5ff0d2d97d7dff/quwowooybuqbl6ntboz3.jpg\\" srcset=\\"srcSet\\" sizes=\\"128px,250px\\" loading=\\"lazy\\">
6+
<span class=\\"gatsby-resp-image-background-image\\" style=\\"padding-bottom: 100%; position: relative; bottom: 0; left: 0; background-image: url('data:image;'); background-size: cover; display: block;\\">
7+
<img class=\\"gatsby-resp-image-image\\" style=\\"width: 100%; height: 100%; margin: 0; vertical-align: middle; position: absolute; top: 0; left: 0; box-shadow: inset 0px 0px 0px 400px white;\\" alt=\\"quwowooybuqbl6ntboz3\\" title=\\"\\" src=\\"https://images.ctfassets.net/rocybtov1ozk/wtrHxeu3zEoEce2MokCSi/73dce36715f16e27cf5ff0d2d97d7dff/quwowooybuqbl6ntboz3.jpg\\" srcset=\\"srcSet\\" sizes=\\"128px,250px\\" loading=\\"lazy\\">
88
</span>
99
</span>
1010
</a>"

packages/gatsby-remark-images/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"dependencies": {
1010
"@babel/runtime": "^7.12.5",
1111
"chalk": "^4.1.0",
12-
"cheerio": "^1.0.0-rc.3",
12+
"cheerio": "^1.0.0-rc.9",
1313
"gatsby-core-utils": "^2.5.0",
1414
"is-relative-url": "^3.0.0",
1515
"lodash": "^4.17.21",

packages/gatsby-remark-images/src/__tests__/__snapshots__/index.js.snap

+4-4
Original file line numberDiff line numberDiff line change
@@ -167,23 +167,23 @@ exports[`it leaves images that are already linked alone 1`] = `
167167
exports[`it leaves linked HTML img tags alone 1`] = `
168168
"<a href=\\"https://example.org\\">
169169
<span class=\\"gatsby-resp-image-wrapper\\" style=\\"position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 300px; \\">
170-
<span class=\\"gatsby-resp-image-background-image\\" style=\\"padding-bottom: 133.33333333333331%; position: relative; bottom: 0; left: 0; background-image: url(&apos;data:image/png;base64,iVBORw&apos;); background-size: cover; display: block;\\"></span>
170+
<span class=\\"gatsby-resp-image-background-image\\" style=\\"padding-bottom: 133.33333333333331%; position: relative; bottom: 0; left: 0; background-image: url('data:image/png;base64,iVBORw'); background-size: cover; display: block;\\"></span>
171171
<img class=\\"gatsby-resp-image-image\\" alt=\\"this image already has a link\\" title=\\"this image already has a link\\" src=\\"not-a-real-dir/images/this-image-already-has-a-link.jpeg\\" srcset=\\"not-a-real-dir/images/this-image-already-has-a-link.jpeg, not-a-real-dir/images/this-image-already-has-a-link.jpeg\\" sizes=\\"(max-width: 650px) 100vw, 650px\\" style=\\"width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;\\" loading=\\"lazy\\">
172172
</span>
173173
</a>"
174174
`;
175175
176176
exports[`it leaves single-line linked HTML img tags alone 1`] = `
177177
"<span class=\\"gatsby-resp-image-wrapper\\" style=\\"position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 300px; \\">
178-
<span class=\\"gatsby-resp-image-background-image\\" style=\\"padding-bottom: 133.33333333333331%; position: relative; bottom: 0; left: 0; background-image: url(&apos;data:image/png;base64,iVBORw&apos;); background-size: cover; display: block;\\"></span>
178+
<span class=\\"gatsby-resp-image-background-image\\" style=\\"padding-bottom: 133.33333333333331%; position: relative; bottom: 0; left: 0; background-image: url('data:image/png;base64,iVBORw'); background-size: cover; display: block;\\"></span>
179179
<img class=\\"gatsby-resp-image-image\\" alt=\\"this image already has a link\\" title=\\"this image already has a link\\" src=\\"not-a-real-dir/images/this-image-already-has-a-link.jpeg\\" srcset=\\"not-a-real-dir/images/this-image-already-has-a-link.jpeg, not-a-real-dir/images/this-image-already-has-a-link.jpeg\\" sizes=\\"(max-width: 650px) 100vw, 650px\\" style=\\"width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;\\" loading=\\"lazy\\">
180180
</span>"
181181
`;
182182
183183
exports[`it transforms HTML img tags 1`] = `
184184
"<span class=\\"gatsby-resp-image-wrapper\\" style=\\"position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 300px; \\">
185185
<a class=\\"gatsby-resp-image-link\\" href=\\"not-a-real-dir/image/my-image.jpeg\\" style=\\"display: block\\" target=\\"_blank\\" rel=\\"noopener\\">
186-
<span class=\\"gatsby-resp-image-background-image\\" style=\\"padding-bottom: 133.33333333333331%; position: relative; bottom: 0; left: 0; background-image: url(&apos;data:image/png;base64,iVBORw&apos;); background-size: cover; display: block;\\"></span>
186+
<span class=\\"gatsby-resp-image-background-image\\" style=\\"padding-bottom: 133.33333333333331%; position: relative; bottom: 0; left: 0; background-image: url('data:image/png;base64,iVBORw'); background-size: cover; display: block;\\"></span>
187187
<img class=\\"gatsby-resp-image-image\\" alt=\\"my image\\" title=\\"my image\\" src=\\"not-a-real-dir/image/my-image.jpeg\\" srcset=\\"not-a-real-dir/image/my-image.jpeg, not-a-real-dir/image/my-image.jpeg\\" sizes=\\"(max-width: 650px) 100vw, 650px\\" style=\\"width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;\\" loading=\\"lazy\\">
188188
</a>
189189
</span>"
@@ -192,7 +192,7 @@ exports[`it transforms HTML img tags 1`] = `
192192
exports[`it transforms HTML img tags with query strings 1`] = `
193193
"<span class=\\"gatsby-resp-image-wrapper\\" style=\\"position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 300px; \\">
194194
<a class=\\"gatsby-resp-image-link\\" href=\\"not-a-real-dir/image/my-image.jpeg\\" style=\\"display: block\\" target=\\"_blank\\" rel=\\"noopener\\">
195-
<span class=\\"gatsby-resp-image-background-image\\" style=\\"padding-bottom: 133.33333333333331%; position: relative; bottom: 0; left: 0; background-image: url(&apos;data:image/png;base64,iVBORw&apos;); background-size: cover; display: block;\\"></span>
195+
<span class=\\"gatsby-resp-image-background-image\\" style=\\"padding-bottom: 133.33333333333331%; position: relative; bottom: 0; left: 0; background-image: url('data:image/png;base64,iVBORw'); background-size: cover; display: block;\\"></span>
196196
<img class=\\"gatsby-resp-image-image\\" alt=\\"my image\\" title=\\"my image\\" src=\\"not-a-real-dir/image/my-image.jpeg\\" srcset=\\"not-a-real-dir/image/my-image.jpeg, not-a-real-dir/image/my-image.jpeg\\" sizes=\\"(max-width: 650px) 100vw, 650px\\" style=\\"width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;\\" loading=\\"lazy\\">
197197
</a>
198198
</span>"

packages/gatsby-remark-prismjs/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"@babel/cli": "^7.12.1",
1616
"@babel/core": "^7.12.3",
1717
"babel-preset-gatsby-package": "^1.5.0",
18-
"cheerio": "^1.0.0-rc.3",
18+
"cheerio": "^1.0.0-rc.9",
1919
"cross-env": "^7.0.3",
2020
"prismjs": "^1.21.0",
2121
"remark": "^13.0.0"

packages/gatsby-remark-responsive-iframe/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
},
99
"dependencies": {
1010
"@babel/runtime": "^7.12.5",
11-
"cheerio": "^1.0.0-rc.3",
11+
"cheerio": "^1.0.0-rc.9",
1212
"common-tags": "^1.8.0",
1313
"lodash": "^4.17.21",
1414
"unist-util-visit": "^2.0.3"

packages/gatsby-source-wordpress/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"cache-manager": "^3.4.0",
2020
"cache-manager-fs-hash": "^0.0.9",
2121
"chalk": "^4.1.0",
22-
"cheerio": "^1.0.0-rc.3",
22+
"cheerio": "^1.0.0-rc.9",
2323
"clipboardy": "^2.1.0",
2424
"diff": "^5.0.0",
2525
"dumper.js": "^1.3.1",

packages/gatsby/src/bootstrap/__tests__/__snapshots__/resolve-module-exports.js.snap

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
exports[`Resolve module exports Show meaningful error message for invalid JavaScript 1`] = `
44
Array [
55
"Syntax error in \\"/bad/file\\":
6-
Const declarations require an initialization value (1:13)
6+
'Const declarations' require an initialization value. (1:13)
77
> 1 | const exports.blah = () = }}}
88
| ^",
99
]

yarn.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -7856,7 +7856,7 @@ cheerio@^0.22.0:
78567856
lodash.reject "^4.4.0"
78577857
lodash.some "^4.4.0"
78587858

7859-
cheerio@^1.0.0-rc.3, cheerio@^1.0.0-rc.8:
7859+
cheerio@^1.0.0-rc.9:
78607860
version "1.0.0-rc.9"
78617861
resolved "https://registry.yarnpkg.com/cheerio/-/cheerio-1.0.0-rc.9.tgz#a3ae6b7ce7af80675302ff836f628e7cb786a67f"
78627862
integrity sha512-QF6XVdrLONO6DXRF5iaolY+odmhj2CLj+xzNod7INPWMi/x9X4SOylH0S/vaPpX+AUU6t04s34SQNh7DbkuCng==

0 commit comments

Comments
 (0)