You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// TODO: we respect these options for all watch options and allow developers to pass them to chokidar, but chokidar doesn't have these options maybe we need revisit that in future
Copy file name to clipboardexpand all lines: test/server/__snapshots__/watchFiles-option.test.js.snap.webpack4
+56
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,19 @@
1
1
// Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
3
+
exports[`'watchFiles' option should work with options {"interval":400,"poll":200} should pass correct options to chokidar config 1`] = `
4
+
Object {
5
+
"alwaysStat": true,
6
+
"atomic": false,
7
+
"followSymlinks": false,
8
+
"ignoreInitial": true,
9
+
"ignorePermissionErrors": true,
10
+
"ignored": undefined,
11
+
"interval": 400,
12
+
"persistent": true,
13
+
"usePolling": true,
14
+
}
15
+
`;
16
+
3
17
exports[`'watchFiles' option should work with options {"poll":200} should pass correct options to chokidar config 1`] = `
4
18
Object {
5
19
"alwaysStat": true,
@@ -28,6 +42,34 @@ Object {
28
42
}
29
43
`;
30
44
45
+
exports[`'watchFiles' option should work with options {"usePolling":false,"interval":200,"poll":400} should pass correct options to chokidar config 1`] = `
46
+
Object {
47
+
"alwaysStat": true,
48
+
"atomic": false,
49
+
"followSymlinks": false,
50
+
"ignoreInitial": true,
51
+
"ignorePermissionErrors": true,
52
+
"ignored": undefined,
53
+
"interval": 200,
54
+
"persistent": true,
55
+
"usePolling": false,
56
+
}
57
+
`;
58
+
59
+
exports[`'watchFiles' option should work with options {"usePolling":false,"poll":200} should pass correct options to chokidar config 1`] = `
60
+
Object {
61
+
"alwaysStat": true,
62
+
"atomic": false,
63
+
"followSymlinks": false,
64
+
"ignoreInitial": true,
65
+
"ignorePermissionErrors": true,
66
+
"ignored": undefined,
67
+
"interval": 200,
68
+
"persistent": true,
69
+
"usePolling": false,
70
+
}
71
+
`;
72
+
31
73
exports[`'watchFiles' option should work with options {"usePolling":false,"poll":true} should pass correct options to chokidar config 1`] = `
32
74
Object {
33
75
"alwaysStat": true,
@@ -70,6 +112,20 @@ Object {
70
112
}
71
113
`;
72
114
115
+
exports[`'watchFiles' option should work with options {"usePolling":true,"poll":200} should pass correct options to chokidar config 1`] = `
116
+
Object {
117
+
"alwaysStat": true,
118
+
"atomic": false,
119
+
"followSymlinks": false,
120
+
"ignoreInitial": true,
121
+
"ignorePermissionErrors": true,
122
+
"ignored": undefined,
123
+
"interval": 200,
124
+
"persistent": true,
125
+
"usePolling": true,
126
+
}
127
+
`;
128
+
73
129
exports[`'watchFiles' option should work with options {"usePolling":true} should pass correct options to chokidar config 1`] = `
Copy file name to clipboardexpand all lines: test/server/__snapshots__/watchFiles-option.test.js.snap.webpack5
+56
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,19 @@
1
1
// Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
3
+
exports[`'watchFiles' option should work with options {"interval":400,"poll":200} should pass correct options to chokidar config 1`] = `
4
+
Object {
5
+
"alwaysStat": true,
6
+
"atomic": false,
7
+
"followSymlinks": false,
8
+
"ignoreInitial": true,
9
+
"ignorePermissionErrors": true,
10
+
"ignored": undefined,
11
+
"interval": 400,
12
+
"persistent": true,
13
+
"usePolling": true,
14
+
}
15
+
`;
16
+
3
17
exports[`'watchFiles' option should work with options {"poll":200} should pass correct options to chokidar config 1`] = `
4
18
Object {
5
19
"alwaysStat": true,
@@ -28,6 +42,34 @@ Object {
28
42
}
29
43
`;
30
44
45
+
exports[`'watchFiles' option should work with options {"usePolling":false,"interval":200,"poll":400} should pass correct options to chokidar config 1`] = `
46
+
Object {
47
+
"alwaysStat": true,
48
+
"atomic": false,
49
+
"followSymlinks": false,
50
+
"ignoreInitial": true,
51
+
"ignorePermissionErrors": true,
52
+
"ignored": undefined,
53
+
"interval": 200,
54
+
"persistent": true,
55
+
"usePolling": false,
56
+
}
57
+
`;
58
+
59
+
exports[`'watchFiles' option should work with options {"usePolling":false,"poll":200} should pass correct options to chokidar config 1`] = `
60
+
Object {
61
+
"alwaysStat": true,
62
+
"atomic": false,
63
+
"followSymlinks": false,
64
+
"ignoreInitial": true,
65
+
"ignorePermissionErrors": true,
66
+
"ignored": undefined,
67
+
"interval": 200,
68
+
"persistent": true,
69
+
"usePolling": false,
70
+
}
71
+
`;
72
+
31
73
exports[`'watchFiles' option should work with options {"usePolling":false,"poll":true} should pass correct options to chokidar config 1`] = `
32
74
Object {
33
75
"alwaysStat": true,
@@ -70,6 +112,20 @@ Object {
70
112
}
71
113
`;
72
114
115
+
exports[`'watchFiles' option should work with options {"usePolling":true,"poll":200} should pass correct options to chokidar config 1`] = `
116
+
Object {
117
+
"alwaysStat": true,
118
+
"atomic": false,
119
+
"followSymlinks": false,
120
+
"ignoreInitial": true,
121
+
"ignorePermissionErrors": true,
122
+
"ignored": undefined,
123
+
"interval": 200,
124
+
"persistent": true,
125
+
"usePolling": true,
126
+
}
127
+
`;
128
+
73
129
exports[`'watchFiles' option should work with options {"usePolling":true} should pass correct options to chokidar config 1`] = `
0 commit comments