-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
/
Copy pathindex.test.js.snap.webpack4
119 lines (88 loc) · 3.64 KB
/
index.test.js.snap.webpack4
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`index should run onSocketMessage.close (hot enabled) 1`] = `"Disconnected!"`;
exports[`index should run onSocketMessage.close (hot enabled) 2`] = `"Close"`;
exports[`index should run onSocketMessage.close (liveReload enabled) 1`] = `"Disconnected!"`;
exports[`index should run onSocketMessage.close (liveReload enabled) 2`] = `"Close"`;
exports[`index should run onSocketMessage.close 1`] = `"Disconnected!"`;
exports[`index should run onSocketMessage.close 2`] = `"Close"`;
exports[`index should run onSocketMessage.error 1`] = `"error!!"`;
exports[`index should run onSocketMessage.errors 1`] = `"Errors while compiling. Reload prevented."`;
exports[`index should run onSocketMessage.errors 2`] = `"Errors"`;
exports[`index should run onSocketMessage.errors 3`] = `
Array [
Array [
"error1",
],
Array [
"error2",
],
Array [
"error3",
],
]
`;
exports[`index should run onSocketMessage.hot 1`] = `"Hot Module Replacement enabled."`;
exports[`index should run onSocketMessage.invalid 1`] = `"App updated. Recompiling..."`;
exports[`index should run onSocketMessage.invalid 2`] = `"Invalid"`;
exports[`index should run onSocketMessage.liveReload 1`] = `"Live Reloading enabled."`;
exports[`index should run onSocketMessage.ok 1`] = `"Ok"`;
exports[`index should run onSocketMessage.ok 2`] = `
Object {
"hot": false,
"hotReload": true,
"initial": false,
"liveReload": false,
"logging": "info",
"overlay": false,
"progress": false,
}
`;
exports[`index should run onSocketMessage.progress and onSocketMessage['progress-update'] 1`] = `"Progress"`;
exports[`index should run onSocketMessage.progress and onSocketMessage['progress-update'] 2`] = `"12% - mock-msg."`;
exports[`index should run onSocketMessage.progress and onSocketMessage['progress-update'] and log plugin name 1`] = `"Progress"`;
exports[`index should run onSocketMessage.progress and onSocketMessage['progress-update'] and log plugin name 2`] = `"[mock-plugin] 12% - mock-msg."`;
exports[`index should run onSocketMessage.warnings 1`] = `"Warnings while compiling."`;
exports[`index should run onSocketMessage.warnings 2`] = `"Warnings"`;
exports[`index should run onSocketMessage.warnings 3`] = `
Array [
Array [
"warn1",
],
Array [
"warn2",
],
Array [
"warn3",
],
]
`;
exports[`index should run onSocketMessage['content-changed'] 1`] = `"Content from static directory was changed. Reloading..."`;
exports[`index should run onSocketMessage['content-changed'](file) 1`] = `"\\"/public/assets/index.html\\" from static directory was changed. Reloading..."`;
exports[`index should run onSocketMessage['static-changed'] 1`] = `"Content from static directory was changed. Reloading..."`;
exports[`index should run onSocketMessage['static-changed'](file) 1`] = `"\\"/static/assets/index.html\\" from static directory was changed. Reloading..."`;
exports[`index should run onSocketMessage['still-ok'] 1`] = `"Nothing changed."`;
exports[`index should run onSocketMessage['still-ok'] 2`] = `"StillOk"`;
exports[`index should set arguments into socket function 1`] = `
Array [
"mock-url",
Object {
"close": [Function],
"content-changed": [Function],
"error": [Function],
"errors": [Function],
"hash": [Function],
"hot": [Function],
"invalid": [Function],
"liveReload": [Function],
"logging": [Function],
"ok": [Function],
"overlay": [Function],
"progress": [Function],
"progress-update": [Function],
"static-changed": [Function],
"still-ok": [Function],
"warnings": [Function],
},
]
`;
exports[`index should update log level if options is passed 1`] = `"info"`;