daisy / daisy/ace

Mock FS operations in integration tests?

Open
#73 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.