{
 "kind": "tool",
 "slug": "ts-mocha",
 "path": "tools/ts-mocha/",
 "name": "ts-mocha",
 "maker": null,
 "density": "basic",
 "crumbs": [
  [
   "Tools",
   "tools/"
  ],
  [
   "Testing",
   "tools/testing/"
  ]
 ],
 "lead": "Mocha wrapper for running TypeScript tests directly with ts-node without compilation.",
 "chips": [
  {
   "label": "Testing",
   "path": "tools/testing/"
  },
  {
   "label": "NPM"
  }
 ],
 "primary": {
  "label": "Copy install command",
  "copy": "npm install ts-mocha"
 },
 "links": [
  {
   "label": "GitHub",
   "href": "https://github.com/piotrwitek/ts-mocha"
  },
  {
   "label": "Website",
   "href": "https://github.com/piotrwitek/ts-mocha#readme"
  }
 ],
 "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/piotrwitek/ts-mocha"
  },
  {
   "key": "maint",
   "label": "Maintained",
   "value": "Quiet for a year",
   "status": "cond",
   "sub": "Last change Feb 20, 2025",
   "note": "Latest GitHub release Feb 20, 2025. ",
   "src": "https://github.com/piotrwitek/ts-mocha"
  },
  {
   "key": "pop",
   "label": "Used by agents' projects",
   "value": "1 projects",
   "status": "info",
   "sub": "#96 of 122 in its category",
   "note": "Dependency in 1 public GitHub projects set up for AI coding agents that we scanned (0.0%).",
   "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 ts-mocha does",
   "parts": [
    {
     "t": "prose",
     "text": "Mocha wrapper for running TypeScript tests directly with ts-node without compilation."
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "ts-mocha popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "47",
       "of": "/ 100",
       "l": "Gid Score, #2297 overall"
      },
      {
       "n": "750K",
       "l": "downloads a week, npm"
      },
      {
       "n": "194",
       "l": "GitHub stars"
      },
      {
       "n": "1",
       "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 ts-mocha is used",
   "parts": [
    {
     "t": "list",
     "items": [
      "ts-mocha is a dependency in 1 of the 6,258 public GitHub projects set up for AI coding agents that we scanned, too few to describe it from them alone. Our scan also samples projects by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750); counting those, it appears in 221 projects, and what it is used with below comes from all of them.",
      "The most used alternative in our scan is Vitest (1,312 projects).",
      "Projects that use it most often also use Mocha (98.2%), Chai (97.7%), Solana Web3.js (91.9%)."
     ]
    },
    {
     "t": "h3",
     "text": "Often used with"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In 98.2% of its projects",
       "v": "Mocha",
       "path": "tools/mocha/"
      },
      {
       "l": "In 97.7% of its projects",
       "v": "Chai",
       "path": "tools/chai/"
      },
      {
       "l": "In 91.9% of its projects",
       "v": "Solana Web3.js",
       "path": "tools/solana-web3-js/"
      },
      {
       "l": "In 68.8% of its projects",
       "v": "Solana SPL Token",
       "path": "tools/solana-spl-token/"
      },
      {
       "l": "In 66.1% of its projects",
       "v": "Anchor",
       "path": "tools/coral-xyz/"
      },
      {
       "l": "In 70.6% of its projects",
       "v": "Prettier",
       "path": "tools/prettier/"
      },
      {
       "l": "In 100.0% of its projects",
       "v": "TypeScript",
       "path": "tools/typescript/"
      },
      {
       "l": "In 26.2% of its projects",
       "v": "ts-node",
       "path": "tools/ts-node/"
      }
     ]
    }
   ]
  },
  {
   "id": "more",
   "nav": null,
   "spy_as": "usage",
   "h2": "More about ts-mocha",
   "parts": [
    {
     "t": "more",
     "items": [
      {
       "title": "More in Testing",
       "path": "tools/testing/",
       "items": [
        {
         "text": "Playwright (JavaScript)",
         "path": "tools/playwright-test/"
        },
        {
         "text": "Testing Library",
         "path": "tools/testing-library/"
        },
        {
         "text": "jsdom",
         "path": "tools/jsdom/"
        },
        {
         "text": "pytest",
         "path": "tools/pytest/"
        },
        {
         "text": "Happy DOM",
         "path": "tools/happy-dom/"
        },
        {
         "text": "axe-core Playwright",
         "path": "tools/axe-core-playwright/"
        },
        {
         "text": "SuperTest",
         "path": "tools/supertest/"
        },
        {
         "text": "Mock Service Worker",
         "path": "tools/msw/"
        }
       ]
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "ts-mocha",
       "me": true,
       "facts": [
        "MIT",
        "Gid 47",
        "750K/wk"
       ]
      },
      {
       "name": "Vitest",
       "why": "Next-generation testing framework powered by Vite with native ESM.",
       "path": "tools/vitest/",
       "facts": [
        "MIT",
        "Gid 86",
        "194M/wk"
       ]
      },
      {
       "name": "Jest",
       "why": "Delightful JavaScript testing framework with minimal configuration.",
       "path": "tools/jest/",
       "facts": [
        "MIT",
        "Gid 86",
        "63.2M/wk"
       ]
      }
     ],
     "more": "Compare ts-mocha with another tool",
     "more_path": "tools/compare/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "install",
     "intro": "Install it.",
     "code": "npm install ts-mocha"
    },
    {
     "t": "gap",
     "text": "No step-by-step start for ts-mocha yet: we have not written its hand-checked card."
    }
   ]
  }
 ],
 "glance": [
  [
   "Package",
   "npm ts-mocha"
  ],
  [
   "Category",
   "Testing"
  ],
  [
   "License",
   "MIT"
  ],
  [
   "Gid Score",
   "47.2"
  ],
  [
   "Rank in category",
   "#96 of 122"
  ],
  [
   "GitHub",
   "piotrwitek/ts-mocha"
  ],
  [
   "Last change",
   "Feb 20, 2025"
  ]
 ],
 "good": [],
 "checked_line": "From the package registry, GitHub and our scan of public agent projects; numbers update daily.",
 "logo": "https://agentgid.com/media/avatars/piotrwitek.png"
}