-
-
Notifications
You must be signed in to change notification settings - Fork 205
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: update jest to the latest version (#457)
* chore: update jest to the latest version * test: update snaps
- Loading branch information
1 parent
3ddf326
commit 7dd065c
Showing
9 changed files
with
8,216 additions
and
8,192 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
2,016 changes: 1,008 additions & 1,008 deletions
2,016
test/__snapshots__/minimize-option.test.js.snap
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,91 +1,91 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`'process' option should work with Async "preprocessor" Function option: errors 1`] = `Array []`; | ||
exports[`'process' option should work with Async "preprocessor" Function option: errors 1`] = `[]`; | ||
|
||
exports[`'process' option should work with Async "preprocessor" Function option: module 1`] = ` | ||
"// Imports | ||
import ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___ from \\"../../src/runtime/getUrl.js\\"; | ||
var ___HTML_LOADER_IMPORT_0___ = new URL(\\"./image.png\\", import.meta.url); | ||
import ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___ from "../../src/runtime/getUrl.js"; | ||
var ___HTML_LOADER_IMPORT_0___ = new URL("./image.png", import.meta.url); | ||
// Module | ||
var ___HTML_LOADER_REPLACEMENT_0___ = ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___(___HTML_LOADER_IMPORT_0___); | ||
var code = \\"<div>\\\\n <p>Alexander Krasnoyarov</p>\\\\n <img src=\\\\\\"\\" + ___HTML_LOADER_REPLACEMENT_0___ + \\"\\\\\\" alt=\\\\\\"alt\\\\\\" />\\\\n<div>\\\\n\\"; | ||
var code = "<div>\\n <p>Alexander Krasnoyarov</p>\\n <img src=\\"" + ___HTML_LOADER_REPLACEMENT_0___ + "\\" alt=\\"alt\\" />\\n<div>\\n"; | ||
// Exports | ||
export default code;" | ||
`; | ||
exports[`'process' option should work with Async "preprocessor" Function option: result 1`] = ` | ||
"<div> | ||
<p>Alexander Krasnoyarov</p> | ||
<img src=\\"replaced_file_protocol_/webpack/public/path/image.png\\" alt=\\"alt\\" /> | ||
<img src="replaced_file_protocol_/webpack/public/path/image.png" alt="alt" /> | ||
<div> | ||
" | ||
`; | ||
exports[`'process' option should work with Async "preprocessor" Function option: warnings 1`] = `Array []`; | ||
exports[`'process' option should work with Async "preprocessor" Function option: warnings 1`] = `[]`; | ||
exports[`'process' option should work with the "preprocessor" option #2: errors 1`] = `Array []`; | ||
exports[`'process' option should work with the "preprocessor" option #2: errors 1`] = `[]`; | ||
exports[`'process' option should work with the "preprocessor" option #2: module 1`] = ` | ||
"// Imports | ||
import ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___ from \\"../../src/runtime/getUrl.js\\"; | ||
var ___HTML_LOADER_IMPORT_0___ = new URL(\\"./image.png.webp\\", import.meta.url); | ||
var ___HTML_LOADER_IMPORT_1___ = new URL(\\"./image.png\\", import.meta.url); | ||
import ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___ from "../../src/runtime/getUrl.js"; | ||
var ___HTML_LOADER_IMPORT_0___ = new URL("./image.png.webp", import.meta.url); | ||
var ___HTML_LOADER_IMPORT_1___ = new URL("./image.png", import.meta.url); | ||
// Module | ||
var ___HTML_LOADER_REPLACEMENT_0___ = ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___(___HTML_LOADER_IMPORT_0___); | ||
var ___HTML_LOADER_REPLACEMENT_1___ = ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___(___HTML_LOADER_IMPORT_1___); | ||
var code = \\"<picture><source type=\\\\\\"image/webp\\\\\\" srcset=\\\\\\"\\" + ___HTML_LOADER_REPLACEMENT_0___ + \\"\\\\\\"><img src=\\\\\\"\\" + ___HTML_LOADER_REPLACEMENT_1___ + \\"\\\\\\"></picture>\\\\n\\"; | ||
var code = "<picture><source type=\\"image/webp\\" srcset=\\"" + ___HTML_LOADER_REPLACEMENT_0___ + "\\"><img src=\\"" + ___HTML_LOADER_REPLACEMENT_1___ + "\\"></picture>\\n"; | ||
// Exports | ||
export default code;" | ||
`; | ||
exports[`'process' option should work with the "preprocessor" option #2: result 1`] = ` | ||
"<picture><source type=\\"image/webp\\" srcset=\\"replaced_file_protocol_/webpack/public/path/image.png.webp\\"><img src=\\"replaced_file_protocol_/webpack/public/path/image.png\\"></picture> | ||
"<picture><source type="image/webp" srcset="replaced_file_protocol_/webpack/public/path/image.png.webp"><img src="replaced_file_protocol_/webpack/public/path/image.png"></picture> | ||
" | ||
`; | ||
exports[`'process' option should work with the "preprocessor" option #2: warnings 1`] = `Array []`; | ||
exports[`'process' option should work with the "preprocessor" option #2: warnings 1`] = `[]`; | ||
exports[`'process' option should work with the "preprocessor" option: errors 1`] = `Array []`; | ||
exports[`'process' option should work with the "preprocessor" option: errors 1`] = `[]`; | ||
exports[`'process' option should work with the "preprocessor" option: module 1`] = ` | ||
"// Imports | ||
import ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___ from \\"../../src/runtime/getUrl.js\\"; | ||
var ___HTML_LOADER_IMPORT_0___ = new URL(\\"./image.png\\", import.meta.url); | ||
import ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___ from "../../src/runtime/getUrl.js"; | ||
var ___HTML_LOADER_IMPORT_0___ = new URL("./image.png", import.meta.url); | ||
// Module | ||
var ___HTML_LOADER_REPLACEMENT_0___ = ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___(___HTML_LOADER_IMPORT_0___); | ||
var code = \\"<div>\\\\n <p>Alexander Krasnoyarov</p>\\\\n <img src=\\\\\\"\\" + ___HTML_LOADER_REPLACEMENT_0___ + \\"\\\\\\" alt=\\\\\\"alt\\\\\\" />\\\\n<div>\\\\n\\"; | ||
var code = "<div>\\n <p>Alexander Krasnoyarov</p>\\n <img src=\\"" + ___HTML_LOADER_REPLACEMENT_0___ + "\\" alt=\\"alt\\" />\\n<div>\\n"; | ||
// Exports | ||
export default code;" | ||
`; | ||
exports[`'process' option should work with the "preprocessor" option: result 1`] = ` | ||
"<div> | ||
<p>Alexander Krasnoyarov</p> | ||
<img src=\\"replaced_file_protocol_/webpack/public/path/image.png\\" alt=\\"alt\\" /> | ||
<img src="replaced_file_protocol_/webpack/public/path/image.png" alt="alt" /> | ||
<div> | ||
" | ||
`; | ||
exports[`'process' option should work with the "preprocessor" option: warnings 1`] = `Array []`; | ||
exports[`'process' option should work with the "preprocessor" option: warnings 1`] = `[]`; | ||
exports[`'process' option should work with the Async "preprocessor" Function option #2: errors 1`] = `Array []`; | ||
exports[`'process' option should work with the Async "preprocessor" Function option #2: errors 1`] = `[]`; | ||
exports[`'process' option should work with the Async "preprocessor" Function option #2: module 1`] = ` | ||
"// Imports | ||
import ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___ from \\"../../src/runtime/getUrl.js\\"; | ||
var ___HTML_LOADER_IMPORT_0___ = new URL(\\"./image.png.webp\\", import.meta.url); | ||
var ___HTML_LOADER_IMPORT_1___ = new URL(\\"./image.png\\", import.meta.url); | ||
import ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___ from "../../src/runtime/getUrl.js"; | ||
var ___HTML_LOADER_IMPORT_0___ = new URL("./image.png.webp", import.meta.url); | ||
var ___HTML_LOADER_IMPORT_1___ = new URL("./image.png", import.meta.url); | ||
// Module | ||
var ___HTML_LOADER_REPLACEMENT_0___ = ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___(___HTML_LOADER_IMPORT_0___); | ||
var ___HTML_LOADER_REPLACEMENT_1___ = ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___(___HTML_LOADER_IMPORT_1___); | ||
var code = \\"<picture><source type=\\\\\\"image/webp\\\\\\" srcset=\\\\\\"\\" + ___HTML_LOADER_REPLACEMENT_0___ + \\"\\\\\\"><img src=\\\\\\"\\" + ___HTML_LOADER_REPLACEMENT_1___ + \\"\\\\\\"></picture>\\\\n\\"; | ||
var code = "<picture><source type=\\"image/webp\\" srcset=\\"" + ___HTML_LOADER_REPLACEMENT_0___ + "\\"><img src=\\"" + ___HTML_LOADER_REPLACEMENT_1___ + "\\"></picture>\\n"; | ||
// Exports | ||
export default code;" | ||
`; | ||
exports[`'process' option should work with the Async "preprocessor" Function option #2: result 1`] = ` | ||
"<picture><source type=\\"image/webp\\" srcset=\\"replaced_file_protocol_/webpack/public/path/image.png.webp\\"><img src=\\"replaced_file_protocol_/webpack/public/path/image.png\\"></picture> | ||
"<picture><source type="image/webp" srcset="replaced_file_protocol_/webpack/public/path/image.png.webp"><img src="replaced_file_protocol_/webpack/public/path/image.png"></picture> | ||
" | ||
`; | ||
exports[`'process' option should work with the Async "preprocessor" Function option #2: warnings 1`] = `Array []`; | ||
exports[`'process' option should work with the Async "preprocessor" Function option #2: warnings 1`] = `[]`; |
10,272 changes: 5,136 additions & 5,136 deletions
10,272
test/__snapshots__/sources-option.test.js.snap
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters