test: split test-fs-watch-ignore-*#61494
Conversation
Split and simplify the tests into individual files. Refs: nodejs#61433
| skipIfNoWatch(); | ||
|
|
||
| // if (common.isSunOS) | ||
| // common.skip('`fs.watch()` is not reliable on SunOS.'); |
There was a problem hiding this comment.
These should be replaced with entries in test/parallel/parallel.status but I can't find a tracking issue.
| // Do the write with a delay to ensure that the OS is ready to notify us. See | ||
| // https://github.com/nodejs/node/issues/52601. |
There was a problem hiding this comment.
I don't know if the delay is needed only on macOS. If so, it would be better to conditionally delay writing using common.isMacOS to avoid wasting time on other platforms.
There was a problem hiding this comment.
I think on macOS at least, this is needed, otherwise it's known to cause flakes due to FSEvents coalescing. Not sure about other platforms.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #61494 +/- ##
==========================================
- Coverage 89.82% 89.78% -0.05%
==========================================
Files 667 672 +5
Lines 203693 203930 +237
Branches 39163 39204 +41
==========================================
+ Hits 182963 183090 +127
- Misses 13061 13171 +110
Partials 7669 7669 🚀 New features to boost your workflow:
|
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
|
@joyeecheung PTAL |
|
Landed in e67848a |
Split and simplify the tests into individual files. Refs: #61433 PR-URL: #61494 Reviewed-By: Joyee Cheung <[email protected]>
Split and simplify the tests into individual files. Refs: #61433 PR-URL: #61494 Reviewed-By: Joyee Cheung <[email protected]>
Split and simplify the tests into individual files. Refs: #61433 PR-URL: #61494 Reviewed-By: Joyee Cheung <[email protected]>
Split and simplify the tests into individual files.
Refs: #61433