Skip to content

Commit

Permalink
Updated snapshots for new asset-hash engine
Browse files Browse the repository at this point in the history
  • Loading branch information
swernerx committed Jan 19, 2022
1 parent 0624561 commit 40034e7
Show file tree
Hide file tree
Showing 28 changed files with 121 additions and 121 deletions.
18 changes: 9 additions & 9 deletions test/asset-folder/__snapshots__/index.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -6,29 +6,29 @@ index.js"
`;

exports[`Asset Folder 2`] = `
"bXipeBrs.png
bsdudxaF.md
gToHHcDx.css
gToHHcDx.css.map"
"HDWIGpiP.md
SmVOQyTt.png
rfFBfmSa.css
rfFBfmSa.css.map"
`;

exports[`Asset Folder 3`] = `
"import content from './bundled-assets/bsdudxaF.md';
import css from './bundled-assets/gToHHcDx.css';
"import content from './bundled-assets/HDWIGpiP.md';
import css from './bundled-assets/rfFBfmSa.css';
function index() {
return content + css
}
export default index;
export { index as default };
"
`;

exports[`Asset Folder 4`] = `
"body {
font-size: 20px;
background: url(./bXipeBrs.png) top left repeat;
background: url(./SmVOQyTt.png) top left repeat;
}
/*# sourceMappingURL=gToHHcDx.css.map */"
/*# sourceMappingURL=rfFBfmSa.css.map */"
`;
2 changes: 1 addition & 1 deletion test/asset-folder/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ test("Asset Folder", async () => {
expect(await list(root, "output")).toMatchSnapshot()
expect(await list(root, "output/bundled-assets")).toMatchSnapshot()
expect(await read(root, "output/index.js")).toMatchSnapshot()
expect(await read(root, "output/bundled-assets/gToHHcDx.css")).toMatchSnapshot()
expect(await read(root, "output/bundled-assets/rfFBfmSa.css")).toMatchSnapshot()

await clean(root, "output")
})
20 changes: 10 additions & 10 deletions test/css-asset/__snapshots__/index.test.js.snap
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`CSS Asset 1`] = `
"bXipeBrs.png
bsdudxaF.md
gToHHcDx.css
gToHHcDx.css.map
index.js"
"HDWIGpiP.md
SmVOQyTt.png
index.js
rfFBfmSa.css
rfFBfmSa.css.map"
`;

exports[`CSS Asset 2`] = `
"import content from './bsdudxaF.md';
import css from './gToHHcDx.css';
"import content from './HDWIGpiP.md';
import css from './rfFBfmSa.css';
function index() {
return content + css
}
export default index;
export { index as default };
"
`;

exports[`CSS Asset 3`] = `
"body {
font-size: 20px;
background: url(./bXipeBrs.png) top left repeat;
background: url(./SmVOQyTt.png) top left repeat;
}
/*# sourceMappingURL=gToHHcDx.css.map */"
/*# sourceMappingURL=rfFBfmSa.css.map */"
`;
2 changes: 1 addition & 1 deletion test/css-asset/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ test("CSS Asset", async () => {

expect(await list(root, "output")).toMatchSnapshot()
expect(await read(root, "output/index.js")).toMatchSnapshot()
expect(await read(root, "output/gToHHcDx.css")).toMatchSnapshot()
expect(await read(root, "output/rfFBfmSa.css")).toMatchSnapshot()

await clean(root, "output")
})
14 changes: 7 additions & 7 deletions test/css-basic/__snapshots__/index.test.js.snap
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`CSS Basic 1`] = `
"KKaZlCcl.css
KKaZlCcl.css.map
bsdudxaF.md
"HDWIGpiP.md
SDZkqFGT.css
SDZkqFGT.css.map
index.js"
`;

exports[`CSS Basic 2`] = `
"import content from './bsdudxaF.md';
import css from './KKaZlCcl.css';
"import content from './HDWIGpiP.md';
import css from './SDZkqFGT.css';
function index() {
return content + css
}
export default index;
export { index as default };
"
`;

Expand All @@ -24,5 +24,5 @@ exports[`CSS Basic 3`] = `
font-size: 20px;
}
/*# sourceMappingURL=KKaZlCcl.css.map */"
/*# sourceMappingURL=SDZkqFGT.css.map */"
`;
2 changes: 1 addition & 1 deletion test/css-basic/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ test("CSS Basic", async () => {

expect(await list(root, "output")).toMatchSnapshot()
expect(await read(root, "output/index.js")).toMatchSnapshot()
expect(await read(root, "output/KKaZlCcl.css")).toMatchSnapshot()
expect(await read(root, "output/SDZkqFGT.css")).toMatchSnapshot()

await clean(root, "output")
})
16 changes: 8 additions & 8 deletions test/exclude/__snapshots__/index.test.js.snap
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Exclude 1`] = `
"bsdudxaF.md
cGxRTWKw.css
cGxRTWKw.css.map
index.js"
"HDWIGpiP.md
index.js
vfhBOfeG.css
vfhBOfeG.css.map"
`;

exports[`Exclude 2`] = `
"import content from './bsdudxaF.md';
import css from './cGxRTWKw.css';
"import content from './HDWIGpiP.md';
import css from './vfhBOfeG.css';
function index() {
return content + css
}
export default index;
export { index as default };
"
`;

Expand All @@ -26,5 +26,5 @@ exports[`Exclude 3`] = `
color: white;
}
/*# sourceMappingURL=cGxRTWKw.css.map */"
/*# sourceMappingURL=vfhBOfeG.css.map */"
`;
2 changes: 1 addition & 1 deletion test/exclude/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ test.only("Exclude", async () => {

expect(await list(root, "output")).toMatchSnapshot()
expect(await read(root, "output/index.js")).toMatchSnapshot()
expect(await read(root, "output/cGxRTWKw.css")).toMatchSnapshot()
expect(await read(root, "output/vfhBOfeG.css")).toMatchSnapshot()

await clean(root, "output")
})
10 changes: 5 additions & 5 deletions test/flat-multi/__snapshots__/index.test.js.snap
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Flat Multi 1`] = `
"bXipeBrs.png
bsdudxaF.md
"HDWIGpiP.md
SmVOQyTt.png
index.js"
`;

exports[`Flat Multi 2`] = `
"import content from './bsdudxaF.md';
import image from './bXipeBrs.png';
"import content from './HDWIGpiP.md';
import image from './SmVOQyTt.png';
function index() {
return content + image
}
export default index;
export { index as default };
"
`;
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Flat Single Non Absolute 1`] = `
"bsdudxaF.md
"HDWIGpiP.md
index.js"
`;

exports[`Flat Single Non Absolute 2`] = `
"import content from './bsdudxaF.md';
"import content from './HDWIGpiP.md';
function index() {
return content
}
export default index;
export { index as default };
"
`;
6 changes: 3 additions & 3 deletions test/flat-single/__snapshots__/index.test.js.snap
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Flat Single 1`] = `
"bsdudxaF.md
"HDWIGpiP.md
index.js"
`;

exports[`Flat Single 2`] = `
"import content from './bsdudxaF.md';
"import content from './HDWIGpiP.md';
function index() {
return content
}
export default index;
export { index as default };
"
`;
16 changes: 8 additions & 8 deletions test/include/__snapshots__/index.test.js.snap
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Include 1`] = `
"bsdudxaF.md
cGxRTWKw.css
cGxRTWKw.css.map
index.js"
"HDWIGpiP.md
index.js
vfhBOfeG.css
vfhBOfeG.css.map"
`;

exports[`Include 2`] = `
"import content from './bsdudxaF.md';
import css from './cGxRTWKw.css';
"import content from './HDWIGpiP.md';
import css from './vfhBOfeG.css';
function index() {
return content + css
}
export default index;
export { index as default };
"
`;

Expand All @@ -26,5 +26,5 @@ exports[`Include 3`] = `
color: white;
}
/*# sourceMappingURL=cGxRTWKw.css.map */"
/*# sourceMappingURL=vfhBOfeG.css.map */"
`;
2 changes: 1 addition & 1 deletion test/include/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ test.only("Include", async () => {

expect(await list(root, "output")).toMatchSnapshot()
expect(await read(root, "output/index.js")).toMatchSnapshot()
expect(await read(root, "output/cGxRTWKw.css")).toMatchSnapshot()
expect(await read(root, "output/vfhBOfeG.css")).toMatchSnapshot()

await clean(root, "output")
})
10 changes: 5 additions & 5 deletions test/indirect-deep-multi/__snapshots__/index.test.js.snap
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Indirect Deep Multi 1`] = `
"bXipeBrs.png
bsdudxaF.md
"HDWIGpiP.md
SmVOQyTt.png
index.js"
`;

exports[`Indirect Deep Multi 2`] = `
"import image from './bXipeBrs.png';
import content from './bsdudxaF.md';
"import image from './SmVOQyTt.png';
import content from './HDWIGpiP.md';
function index() {
return content + image
}
export default index;
export { index as default };
"
`;
6 changes: 3 additions & 3 deletions test/indirect-deep-single/__snapshots__/index.test.js.snap
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Indirect Deep Single 1`] = `
"bsdudxaF.md
"HDWIGpiP.md
index.js"
`;

exports[`Indirect Deep Single 2`] = `
"import content from './bsdudxaF.md';
"import content from './HDWIGpiP.md';
function index() {
return content
}
export default index;
export { index as default };
"
`;
6 changes: 3 additions & 3 deletions test/indirect-js-ext/__snapshots__/index.test.js.snap
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Indirect Deep Single with JS Extension 1`] = `
"bsdudxaF.md
"HDWIGpiP.md
index.js"
`;

exports[`Indirect Deep Single with JS Extension 2`] = `
"import content from './bsdudxaF.md';
"import content from './HDWIGpiP.md';
function index() {
return content
}
export default index;
export { index as default };
"
`;
6 changes: 3 additions & 3 deletions test/indirect-single/__snapshots__/index.test.js.snap
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Indirect Single 1`] = `
"bsdudxaF.md
"HDWIGpiP.md
index.js"
`;

exports[`Indirect Single 2`] = `
"import content from './bsdudxaF.md';
"import content from './HDWIGpiP.md';
function index() {
return content
}
export default index;
export { index as default };
"
`;
Loading

0 comments on commit 40034e7

Please sign in to comment.