Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #481 +/- ##
==========================================
+ Coverage 73.86% 74.40% +0.54%
==========================================
Files 109 110 +1
Lines 10356 10482 +126
Branches 686 704 +18
==========================================
+ Hits 7649 7799 +150
+ Misses 2704 2680 -24
Partials 3 3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Pull Request Overview
This PR adds comprehensive test coverage for the safeCopy utility function, which copies files from a source to a target directory while intelligently skipping files that haven't changed based on file size and modification time.
- Implements 7 test cases covering various scenarios including new file copying, multiple file handling, and conditional copying based on file stats
- Uses Node.js native test runner and filesystem promises for test setup/teardown
- Tests edge cases like empty directories and files with identical sizes but different content
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Note that there is a non-zero chance that we revert the change in favor of a different approach, per nodejs/node#57343 (comment), so let's hold off on merging this for the time being (Not saying we should, just that it's on the table) |

Adds unit tests for the recently introduced
safeCopymethod from #480