mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2026-02-19 23:25:51 -05:00
This commit introduces two new asynchronous tests in the `watcher.rs` file: `test_file_deletion_events` and `test_file_modify_then_delete`. These tests validate the correct handling of file creation, modification, and deletion events by the `FsWatcher`. The tests ensure that deletion events are reported accurately, addressing potential misreporting issues. Additionally, the macOS platform handler has been updated to emit a Remove event for non-existent paths, improving event accuracy in the watcher. Cleanup logic is included to remove test directories after execution.