Neil de Carteret
Neil de Carteret
Created by Neil de Carteret on 8/1/2023 in #help
What's a good way to write tests for a script which does a bunch filesystem wrangling?
As per the title - I have a script which, given a folder, does a bunch of moving and renaming. I'd like to test it, ideally without having to abstract the entire fs away. The last timer I had to do this under Node.js I think I used mock-fs, but that works directly with Node's fs API. What would be a good approach for doing this in Deno?
5 replies