Testing isolation problem while working on watchr:
`has_matching_event` calls `is_mutation`, `check_extensions,` and `path.is_file()` - making error signals noisy. Rust lacks built-in mocking - opened #67 to investigate strategy for unit test isolation.
#rustlang #buildinpublic
github.com
refactor: investigate mocking strategy for unit test isolation · Issue #67 · mg4603/watchr
Currently, function unit tests aren't isolated (with mocking). This makes testing to be noisy and makes it hard to isolate the cause of failure. Investigate using trait injection or mockall to ensu...