memfs
In-memory file-system with Node's fs API.
sinon
JavaScript test spies, stubs and mocks.
msw
Seamless REST/GraphQL API mocking library for browser and Node.js.
tinyspy
A minimal fork of nanospy, with more features
node-mocks-http
Mock 'http' objects for testing Express, Next.js and Koa routing functions