Skip to content
Agents tracked: 492 Releases (7d): 545 Agent status: 1 with issuesSince last limit reset: Claude 9d · Codex 7d For AI agents: Markdown Updated Nov 20, 2026

mock-fs

Mock file system for Node.js tests.

TestingNPM

GitHubWebsite

1. License

License from npm.

github.com/tschaub/mock-fs

From the package registry and GitHub, checked daily. Tap a verdict to see its source.How we checkedReport an error

What mock-fs does

Mock file system for Node.js tests.

mock-fs popularity

37 / 100
Gid Score, #3398 overall
1.3M
downloads a week, npm
919
GitHub stars
11
agent projects use it
mock-fs: downloads per weeknpm, mock-fs 1,297,818
mock-fs: GitHub starstschaub/mock-fs 919

Gid Score measures public popularity and activity, not quality. How the Gid Score is calculated

How mock-fs is used

  • mock-fs joined the catalog on its public numbers (1,297,818 downloads a week on npm and 919 GitHub stars), not on our project count: it is a dependency in 13 public GitHub projects of our scan, 11 of them set up for AI coding agents.
  • Projects that use it most often also use dotenv (92.3%), tsx (92.3%), Zod (92.3%).
  • It is more common in projects set up for Kiro (5.0%) than for Claude Code (0.3%).

By coding agent

10 projects, 0.4%
9 projects, 0.3%
7 projects, 5.0%

Often used with

In 92.3% of its projects
In 92.3% of its projects
In 92.3% of its projects
In 84.6% of its projects
In 84.6% of its projects
In 84.6% of its projects
In 76.9% of its projects
In 76.9% of its projects

More about mock-fs

More in Testing

Alternatives

mock-fs This page

MITGid 371.3M/wk

Compare mock-fs with another tool

Get started

Install it.

npm install mock-fs

No step-by-step start for mock-fs yet: we have not written its hand-checked card.