-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: polling usage in watchFiles option (#3366)
- Loading branch information
Showing
4 changed files
with
242 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
85 changes: 85 additions & 0 deletions
85
test/server/__snapshots__/watchFiles-option.test.js.snap.webpack4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`'watchFiles' option should work with options {"poll":200} should pass correct options to chokidar config 1`] = ` | ||
Object { | ||
"alwaysStat": true, | ||
"atomic": false, | ||
"followSymlinks": false, | ||
"ignoreInitial": true, | ||
"ignorePermissionErrors": true, | ||
"ignored": undefined, | ||
"interval": 200, | ||
"persistent": true, | ||
"usePolling": true, | ||
} | ||
`; | ||
|
||
exports[`'watchFiles' option should work with options {"poll":true} should pass correct options to chokidar config 1`] = ` | ||
Object { | ||
"alwaysStat": true, | ||
"atomic": false, | ||
"followSymlinks": false, | ||
"ignoreInitial": true, | ||
"ignorePermissionErrors": true, | ||
"ignored": undefined, | ||
"interval": undefined, | ||
"persistent": true, | ||
"usePolling": true, | ||
} | ||
`; | ||
|
||
exports[`'watchFiles' option should work with options {"usePolling":false,"poll":true} should pass correct options to chokidar config 1`] = ` | ||
Object { | ||
"alwaysStat": true, | ||
"atomic": false, | ||
"followSymlinks": false, | ||
"ignoreInitial": true, | ||
"ignorePermissionErrors": true, | ||
"ignored": undefined, | ||
"interval": undefined, | ||
"persistent": true, | ||
"usePolling": false, | ||
} | ||
`; | ||
|
||
exports[`'watchFiles' option should work with options {"usePolling":false} should pass correct options to chokidar config 1`] = ` | ||
Object { | ||
"alwaysStat": true, | ||
"atomic": false, | ||
"followSymlinks": false, | ||
"ignoreInitial": true, | ||
"ignorePermissionErrors": true, | ||
"ignored": undefined, | ||
"interval": undefined, | ||
"persistent": true, | ||
"usePolling": false, | ||
} | ||
`; | ||
|
||
exports[`'watchFiles' option should work with options {"usePolling":true,"interval":200,"poll":400} should pass correct options to chokidar config 1`] = ` | ||
Object { | ||
"alwaysStat": true, | ||
"atomic": false, | ||
"followSymlinks": false, | ||
"ignoreInitial": true, | ||
"ignorePermissionErrors": true, | ||
"ignored": undefined, | ||
"interval": 200, | ||
"persistent": true, | ||
"usePolling": true, | ||
} | ||
`; | ||
|
||
exports[`'watchFiles' option should work with options {"usePolling":true} should pass correct options to chokidar config 1`] = ` | ||
Object { | ||
"alwaysStat": true, | ||
"atomic": false, | ||
"followSymlinks": false, | ||
"ignoreInitial": true, | ||
"ignorePermissionErrors": true, | ||
"ignored": undefined, | ||
"interval": undefined, | ||
"persistent": true, | ||
"usePolling": true, | ||
} | ||
`; |
85 changes: 85 additions & 0 deletions
85
test/server/__snapshots__/watchFiles-option.test.js.snap.webpack5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`'watchFiles' option should work with options {"poll":200} should pass correct options to chokidar config 1`] = ` | ||
Object { | ||
"alwaysStat": true, | ||
"atomic": false, | ||
"followSymlinks": false, | ||
"ignoreInitial": true, | ||
"ignorePermissionErrors": true, | ||
"ignored": undefined, | ||
"interval": 200, | ||
"persistent": true, | ||
"usePolling": true, | ||
} | ||
`; | ||
|
||
exports[`'watchFiles' option should work with options {"poll":true} should pass correct options to chokidar config 1`] = ` | ||
Object { | ||
"alwaysStat": true, | ||
"atomic": false, | ||
"followSymlinks": false, | ||
"ignoreInitial": true, | ||
"ignorePermissionErrors": true, | ||
"ignored": undefined, | ||
"interval": undefined, | ||
"persistent": true, | ||
"usePolling": true, | ||
} | ||
`; | ||
|
||
exports[`'watchFiles' option should work with options {"usePolling":false,"poll":true} should pass correct options to chokidar config 1`] = ` | ||
Object { | ||
"alwaysStat": true, | ||
"atomic": false, | ||
"followSymlinks": false, | ||
"ignoreInitial": true, | ||
"ignorePermissionErrors": true, | ||
"ignored": undefined, | ||
"interval": undefined, | ||
"persistent": true, | ||
"usePolling": false, | ||
} | ||
`; | ||
|
||
exports[`'watchFiles' option should work with options {"usePolling":false} should pass correct options to chokidar config 1`] = ` | ||
Object { | ||
"alwaysStat": true, | ||
"atomic": false, | ||
"followSymlinks": false, | ||
"ignoreInitial": true, | ||
"ignorePermissionErrors": true, | ||
"ignored": undefined, | ||
"interval": undefined, | ||
"persistent": true, | ||
"usePolling": false, | ||
} | ||
`; | ||
|
||
exports[`'watchFiles' option should work with options {"usePolling":true,"interval":200,"poll":400} should pass correct options to chokidar config 1`] = ` | ||
Object { | ||
"alwaysStat": true, | ||
"atomic": false, | ||
"followSymlinks": false, | ||
"ignoreInitial": true, | ||
"ignorePermissionErrors": true, | ||
"ignored": undefined, | ||
"interval": 200, | ||
"persistent": true, | ||
"usePolling": true, | ||
} | ||
`; | ||
|
||
exports[`'watchFiles' option should work with options {"usePolling":true} should pass correct options to chokidar config 1`] = ` | ||
Object { | ||
"alwaysStat": true, | ||
"atomic": false, | ||
"followSymlinks": false, | ||
"ignoreInitial": true, | ||
"ignorePermissionErrors": true, | ||
"ignored": undefined, | ||
"interval": undefined, | ||
"persistent": true, | ||
"usePolling": true, | ||
} | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters