This repository has been archived by the owner on Oct 27, 2020. It is now read-only.
/
cacheContext-option.test.js.snap
78 lines (71 loc) · 2.3 KB
/
cacheContext-option.test.js.snap
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`cacheContext option should generate absolute paths to the project root: errors 1`] = `Array []`;
exports[`cacheContext option should generate absolute paths to the project root: warnings 1`] = `Array []`;
exports[`cacheContext option should generate relative paths to the project root: errors 1`] = `Array []`;
exports[`cacheContext option should generate relative paths to the project root: generated cache-loader data 1`] = `
"[
{
\\"remainingRequest\\": \\"test/fixtures/basic/file_1.js\\",
\\"dependencies\\": [
{
\\"path\\": \\"test/fixtures/basic/file_1.js\\",
\\"mtime\\": null
},
{
\\"path\\": \\"src/index.js\\",
\\"mtime\\": null
}
],
\\"contextDependencies\\": [],
\\"result\\": [
{
\\"type\\": \\"Buffer\\",
\\"data\\": \\"base64:LyogZXNsaW50LWRpc2FibGUgKi8KY29uc29sZS5sb2coJ2ZpbGVfMScpOwo=\\"
}
]
},
{
\\"remainingRequest\\": \\"test/fixtures/basic/file_2.js\\",
\\"dependencies\\": [
{
\\"path\\": \\"test/fixtures/basic/file_2.js\\",
\\"mtime\\": null
},
{
\\"path\\": \\"src/index.js\\",
\\"mtime\\": null
}
],
\\"contextDependencies\\": [],
\\"result\\": [
{
\\"type\\": \\"Buffer\\",
\\"data\\": \\"base64:LyogZXNsaW50LWRpc2FibGUgKi8KY29uc29sZS5sb2coJ2ZpbGVfMicpOwo=\\"
}
]
},
{
\\"remainingRequest\\": \\"test/fixtures/basic/index.js\\",
\\"dependencies\\": [
{
\\"path\\": \\"test/fixtures/basic/index.js\\",
\\"mtime\\": null
},
{
\\"path\\": \\"src/index.js\\",
\\"mtime\\": null
}
],
\\"contextDependencies\\": [],
\\"result\\": [
{
\\"type\\": \\"Buffer\\",
\\"data\\": \\"base64:LyogZXNsaW50LWRpc2FibGUgKi8KcmVxdWlyZSgnLi9maWxlXzEuanMnKTsKcmVxdWlyZSgnLi9maWxlXzIuanMnKTsKCmNvbnNvbGUubG9nKCdiYXNpY19lbnRyeScpOwo=\\"
}
]
}
]"
`;
exports[`cacheContext option should generate relative paths to the project root: warnings 1`] = `Array []`;
exports[`cacheContext option should load as a raw loader to support images: errors 1`] = `Array []`;
exports[`cacheContext option should load as a raw loader to support images: warnings 1`] = `Array []`;