{
 "kind": "tool",
 "slug": "mock-fs",
 "path": "tools/mock-fs/",
 "name": "mock-fs",
 "maker": null,
 "density": "basic",
 "crumbs": [
  [
   "Tools",
   "tools/"
  ],
  [
   "Testing",
   "tools/testing/"
  ]
 ],
 "lead": "Mock file system for Node.js tests.",
 "chips": [
  {
   "label": "Testing",
   "path": "tools/testing/"
  },
  {
   "label": "NPM"
  }
 ],
 "primary": {
  "label": "Copy install command",
  "copy": "npm install mock-fs"
 },
 "links": [
  {
   "label": "GitHub",
   "href": "https://github.com/tschaub/mock-fs"
  },
  {
   "label": "Website",
   "href": "https://github.com/tschaub/mock-fs"
  }
 ],
 "track": "New versions, deprecation and license changes on your dashboard",
 "verdicts": [
  {
   "key": "license",
   "label": "License",
   "value": "MIT",
   "status": "yes",
   "sub": "Use it in paid apps",
   "quote": null,
   "note": "License from npm.",
   "src": "https://github.com/tschaub/mock-fs"
  },
  {
   "key": "maint",
   "label": "Maintained",
   "value": "Maintained",
   "status": "yes",
   "sub": "Last change Mar 1, 2026",
   "note": "Latest GitHub release Feb 6, 2025. ",
   "src": "https://github.com/tschaub/mock-fs"
  },
  {
   "key": "pop",
   "label": "Used by agents' projects",
   "value": "11 projects",
   "status": "info",
   "sub": "#46 of 122 in its category",
   "note": "Dependency in 11 public GitHub projects set up for AI coding agents that we scanned (0.2%).",
   "src": null
  },
  {
   "key": "agent",
   "label": "Agent access",
   "value": "Install only",
   "status": "info",
   "sub": null,
   "note": "Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.",
   "src": null
  }
 ],
 "vfoot": "From the package registry and GitHub, checked daily.",
 "blocks": [
  {
   "id": "overview",
   "nav": "Overview",
   "h2": "What mock-fs does",
   "parts": [
    {
     "t": "prose",
     "text": "Mock file system for Node.js tests."
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "mock-fs popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "37",
       "of": "/ 100",
       "l": "Gid Score, #3398 overall"
      },
      {
       "n": "1.3M",
       "l": "downloads a week, npm"
      },
      {
       "n": "919",
       "l": "GitHub stars"
      },
      {
       "n": "11",
       "l": "agent projects use it"
      }
     ]
    },
    {
     "t": "small",
     "text": "Gid Score measures public popularity and activity, not quality.",
     "link": "How the Gid Score is calculated",
     "path": "tools/top/"
    }
   ]
  },
  {
   "id": "usage",
   "nav": "How it is used",
   "h2": "How mock-fs is used",
   "parts": [
    {
     "t": "list",
     "items": [
      "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%)."
     ]
    },
    {
     "t": "h3",
     "text": "By coding agent"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "10 projects, 0.4%",
       "v": "Cursor",
       "path": "agents/cursor/"
      },
      {
       "l": "9 projects, 0.3%",
       "v": "Claude Code",
       "path": "agents/claude-code/"
      },
      {
       "l": "7 projects, 5.0%",
       "v": "Kiro",
       "path": "agents/kiro/"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Often used with"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In 92.3% of its projects",
       "v": "dotenv",
       "path": "tools/dotenv/"
      },
      {
       "l": "In 92.3% of its projects",
       "v": "tsx",
       "path": "tools/tsx/"
      },
      {
       "l": "In 92.3% of its projects",
       "v": "Zod",
       "path": "tools/zod/"
      },
      {
       "l": "In 84.6% of its projects",
       "v": "Commander",
       "path": "tools/commander/"
      },
      {
       "l": "In 84.6% of its projects",
       "v": "Prettier",
       "path": "tools/prettier/"
      },
      {
       "l": "In 84.6% of its projects",
       "v": "uuid",
       "path": "tools/uuid/"
      },
      {
       "l": "In 76.9% of its projects",
       "v": "Changesets",
       "path": "tools/changesets-cli/"
      },
      {
       "l": "In 76.9% of its projects",
       "v": "@openrouter/ai-sdk-provider",
       "path": "tools/openrouter-ai-sdk-provider/"
      }
     ]
    }
   ]
  },
  {
   "id": "more",
   "nav": null,
   "spy_as": "usage",
   "h2": "More about mock-fs",
   "parts": [
    {
     "t": "more",
     "items": [
      {
       "title": "More in Testing",
       "path": "tools/testing/",
       "items": [
        {
         "text": "Vitest",
         "path": "tools/vitest/"
        },
        {
         "text": "Playwright (JavaScript)",
         "path": "tools/playwright-test/"
        },
        {
         "text": "Testing Library",
         "path": "tools/testing-library/"
        },
        {
         "text": "jsdom",
         "path": "tools/jsdom/"
        },
        {
         "text": "Jest",
         "path": "tools/jest/"
        },
        {
         "text": "pytest",
         "path": "tools/pytest/"
        },
        {
         "text": "Happy DOM",
         "path": "tools/happy-dom/"
        },
        {
         "text": "axe-core Playwright",
         "path": "tools/axe-core-playwright/"
        }
       ]
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "mock-fs",
       "me": true,
       "facts": [
        "MIT",
        "Gid 37",
        "1.3M/wk"
       ]
      }
     ],
     "more": "Compare mock-fs with another tool",
     "more_path": "tools/compare/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "install",
     "intro": "Install it.",
     "code": "npm install mock-fs"
    },
    {
     "t": "gap",
     "text": "No step-by-step start for mock-fs yet: we have not written its hand-checked card."
    }
   ]
  }
 ],
 "glance": [
  [
   "Package",
   "npm mock-fs"
  ],
  [
   "Category",
   "Testing"
  ],
  [
   "License",
   "MIT"
  ],
  [
   "Gid Score",
   "36.7"
  ],
  [
   "Rank in category",
   "#46 of 122"
  ],
  [
   "GitHub",
   "tschaub/mock-fs"
  ],
  [
   "Last change",
   "Mar 1, 2026"
  ]
 ],
 "good": [],
 "checked_line": "From the package registry, GitHub and our scan of public agent projects; numbers update daily.",
 "logo": "https://agentgid.com/media/avatars/tschaub.png"
}