Open ajvincent opened 1 year ago
@ajvincent Sorry for the late reply.
For the first one, sure, we can add a fs
config, so the user can pass their custom fs such as memfs
.
The second one, I am very interested in the automated tool you are working on, I think it's helpful for some terminal-related tools testing, I prefer jest
and vitest
for the test job. Looking forward to your update about the automated test tool.
I'm writing a configuration wizard using this project, along with
memfs
andunionfs
to manage a temporary file system as an overlay on top of the existing real file system. I really would like to pass in the temporary file system I built fromunionfs
as an override.There are precisely two uses of
fs
insrc/index/index.ts
. This could be a pretty straight-forward fix.On a related note, I did some experiments with
enquirer
a couple days ago. I was running prompts through a child process and driving it through stdin and stdout. The goal was to add automated tests. I see no reason I couldn't do the same here, if there's a desire for it. I just need to know what testing framework you'd prefer.