test-utils icon indicating copy to clipboard operation
test-utils copied to clipboard

feat: use `memfs` (or equivalent) to allow for mocking files in tests

Open danielroe opened this issue 5 years ago • 0 comments

It would be really convenient if we could mock a filesystem and inject files into it through the test utils.

E.g. if my module reads in a config from a .json file in the rootDirectory, it would be nice to test that without creating multiple fixtures.

danielroe avatar Aug 08 '20 07:08 danielroe