Mock FS operations in integration tests?
Open
backlog
help wanted
tests
- Dominant language
- JavaScript
- Stars
- 98
- Forks
- 29
- PR merge metrics
- No merged PRs in 30d
Description
Some tests specifically test things like FS operations: whether the report is correctly created, resources copied over, etc. Using some kind of mocked/virtual FS for these would improve isolation and give us more flexibility (e.g. possibly to test resilience to IO errors, etc).
I quickly tried a few options (with Jest’s built-in mocking features, or with `mock-fs`) but with no luck so far. To be further investigated.
Contributor guide
Assessment
This issue has not been assessed yet.