bennypB
Denoβ€’9mo ago
bennyp

Mocking the FileSystem

Hello! I'd like to mock the filesystem for some BDD tests - in other words, create some fake files before a test and tear them down afterwards. I need these mocks to specifically affect require.resolve calls.

Do you have an example of this I could crib from?
Was this page helpful?