|
1 | 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP
|
2 | 2 |
|
3 |
| -exports[`'sources' option should allow to add more attributes ti default values: errors 1`] = `Array []`; |
| 3 | +exports[`'sources' option should allow to add more attributes to default values: errors 1`] = `Array []`; |
4 | 4 |
|
5 |
| -exports[`'sources' option should allow to add more attributes ti default values: module 1`] = ` |
| 5 | +exports[`'sources' option should allow to add more attributes to default values: module 1`] = ` |
6 | 6 | "// Imports
|
7 | 7 | import ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___ from \\"../../src/runtime/getUrl.js\\";
|
8 | 8 | var ___HTML_LOADER_IMPORT_0___ = new URL(\\"./image.png\\", import.meta.url);
|
@@ -68,7 +68,7 @@ var code = \\"<!doctype html>\\\\n\\\\n<h1>My First Heading</h1>\\\\n<p>My first
|
68 | 68 | export default code;"
|
69 | 69 | `;
|
70 | 70 |
|
71 |
| -exports[`'sources' option should allow to add more attributes ti default values: result 1`] = ` |
| 71 | +exports[`'sources' option should allow to add more attributes to default values: result 1`] = ` |
72 | 72 | "<!doctype html>
|
73 | 73 |
|
74 | 74 | <h1>My First Heading</h1>
|
@@ -517,7 +517,7 @@ ANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4
|
517 | 517 | </div>"
|
518 | 518 | `;
|
519 | 519 |
|
520 |
| -exports[`'sources' option should allow to add more attributes ti default values: warnings 1`] = `Array []`; |
| 520 | +exports[`'sources' option should allow to add more attributes to default values: warnings 1`] = `Array []`; |
521 | 521 |
|
522 | 522 | exports[`'sources' option should handle "sources" tags: errors 1`] = `
|
523 | 523 | Array [
|
@@ -3814,6 +3814,26 @@ ANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4
|
3814 | 3814 |
|
3815 | 3815 | exports[`'sources' option should work and override the "img" tag logic with "...": warnings 1`] = `Array []`;
|
3816 | 3816 |
|
| 3817 | +exports[`'sources' option should work and supports \`resolve.roots\`: errors 1`] = `Array []`; |
| 3818 | + |
| 3819 | +exports[`'sources' option should work and supports \`resolve.roots\`: module 1`] = ` |
| 3820 | +"// Imports |
| 3821 | +import ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___ from \\"../../src/runtime/getUrl.js\\"; |
| 3822 | +var ___HTML_LOADER_IMPORT_0___ = new URL(\\"/image3.png\\", import.meta.url); |
| 3823 | +// Module |
| 3824 | +var ___HTML_LOADER_REPLACEMENT_0___ = ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___(___HTML_LOADER_IMPORT_0___); |
| 3825 | +var code = \\"<img src=\\\\\\"\\" + ___HTML_LOADER_REPLACEMENT_0___ + \\"\\\\\\"/>\\\\n\\"; |
| 3826 | +// Exports |
| 3827 | +export default code;" |
| 3828 | +`; |
| 3829 | + |
| 3830 | +exports[`'sources' option should work and supports \`resolve.roots\`: result 1`] = ` |
| 3831 | +"<img src=\\"replaced_file_protocol_/webpack/public/path/image3.png\\"/> |
| 3832 | +" |
| 3833 | +`; |
| 3834 | + |
| 3835 | +exports[`'sources' option should work and supports \`resolve.roots\`: warnings 1`] = `Array []`; |
| 3836 | + |
3817 | 3837 | exports[`'sources' option should work by default with CommonJS module syntax and ES module syntax from other loader: errors 1`] = `Array []`;
|
3818 | 3838 |
|
3819 | 3839 | exports[`'sources' option should work by default with CommonJS module syntax and ES module syntax from other loader: module 1`] = `
|
|
0 commit comments