forked from webpack-contrib/cache-loader
/
cacheContext-option.test.js.snap
74 lines (68 loc) · 1.82 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
// 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`] = `
Array [
Object {
"contextDependencies": Array [],
"dependencies": Array [
Object {
"mtime": null,
"path": "test/fixtures/basic/file_1.js",
},
Object {
"mtime": null,
"path": "src/index.js",
},
],
"remainingRequest": "test/fixtures/basic/file_1.js",
"result": Array [
"/* eslint-disable */
console.log('file_1');
",
],
},
Object {
"contextDependencies": Array [],
"dependencies": Array [
Object {
"mtime": null,
"path": "test/fixtures/basic/file_2.js",
},
Object {
"mtime": null,
"path": "src/index.js",
},
],
"remainingRequest": "test/fixtures/basic/file_2.js",
"result": Array [
"/* eslint-disable */
console.log('file_2');
",
],
},
Object {
"contextDependencies": Array [],
"dependencies": Array [
Object {
"mtime": null,
"path": "test/fixtures/basic/index.js",
},
Object {
"mtime": null,
"path": "src/index.js",
},
],
"remainingRequest": "test/fixtures/basic/index.js",
"result": Array [
"/* eslint-disable */
require('./file_1.js');
require('./file_2.js');
console.log('basic_entry');
",
],
},
]
`;
exports[`cacheContext option should generate relative paths to the project root: warnings 1`] = `Array []`;