-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make jetpack.move
work cross-device
#93
Conversation
Will you be interested in updating this PR after changes made by #92 ? :) |
@szwacz Yes, will do as soon as possible, thank you!! |
@szwacz PR updated! 😄 |
The code looks good :) There are some problems with node v14 on windows: https://ci.appveyor.com/project/szwacz/fs-jetpack/build/job/2gl5f46j3pm7akcl I'd also need to test it on MacOS/Linux (I believe you're a Windows user so it was already tested there). |
@szwacz Would you like me to add a test by mocking Also looks like Travis did not run, any idea why? Also appveyor is not helpful with the Node 14 failure, unless I am missing something, it just says |
I don't think this is good library to use mocks. After all the whole purpose of it is to change the state of file system, if you mock the file system then the most essential element was thrown away, and the remaining test tests very little. Tough luck, this part just won't be automatically tested. Travis did run, just for some reason doesn't appear here: https://travis-ci.org/github/szwacz/fs-jetpack Yes, the error with node 14 is wierd. Do you have this version installed on your windows machine and the tests pass? |
Ok, the AppVeyor error looks like their testing environment issue, and not issue of this library. Actually Travis is supporting now Windows builds: https://docs.travis-ci.com/user/multi-os/ I'll gieve it a try. |
Codecov Report
@@ Coverage Diff @@
## master #93 +/- ##
==========================================
- Coverage 97.37% 97.05% -0.32%
==========================================
Files 24 24
Lines 1256 1258 +2
Branches 240 237 -3
==========================================
- Hits 1223 1221 -2
- Misses 33 37 +4
Continue to review full report at Codecov.
|
I've tested it on MacOS, looks good, so released as v3.1.0 |
Awesome, sorry for not replying earlier. Yes, works for me on windows 😁 |
Closes #48
Closes #88
The behavior I chose for when the destination already exists is the same currently happening when in the same device. See #92.
I did not add a test because I don't think it's possible to test for
EXDEV
in travis/appveyor. I tested manually though.