Mocha
The Mocha icon represents the Mocha JavaScript testing framework, a popular tool for building and running tests.
Exports at 24 × 24 px
Code
Mocha in your framework
In any framework. Customize it above, and the code follows.
export const MochaIcon = (props: React.SVGProps<SVGSVGElement>) => (
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 128 128" {...props}>
<path fill="#8d6748" d="m116.904 98.49l-49.469 28.582a6.83 6.83 0 0 1-6.87 0L11.096 98.491c-2.13-1.237-3.435-3.504-3.435-5.91V35.419c0-2.473 1.305-4.672 3.435-5.909L60.565.928a6.83 6.83 0 0 1 6.87 0l49.469 28.581c2.13 1.237 3.435 3.504 3.435 5.91v57.163c-.068 2.405-1.374 4.672-3.435 5.909z"/><path fill="#fff" d="M63.931 8.69c-1.03 0-2.061.277-2.955.826L18.241 34.182c-1.855 1.03-2.953 3.022-2.953 5.084v49.33c0 2.13 1.098 4.055 2.953 5.086l42.735 24.665c.894.55 1.924.824 2.955.824c1.03 0 2.062-.274 2.955-.824l42.735-24.665c1.855-1.03 2.955-3.024 2.955-5.085V39.266c0-2.13-1.1-4.054-2.955-5.084L66.886 9.516a5.65 5.65 0 0 0-2.955-.825Zm0 2.062c.687 0 1.306.207 1.924.55l42.735 24.666a3.95 3.95 0 0 1 1.924 3.367v49.33c0 1.375-.756 2.68-1.924 3.367l-42.735 24.666c-.618.343-1.237.55-1.924.55a3.7 3.7 0 0 1-1.924-.55L19.272 92.032a3.95 3.95 0 0 1-1.924-3.366V39.335c0-1.375.756-2.68 1.924-3.367l42.735-24.666c.619-.343 1.306-.55 1.924-.55m.24 19.375c-.893 1.1-2.404 2.268-.755 4.741c.55.618.824 1.924.756 2.336c0 0 2.473-1.442.961-4.053c-.893-1.374-1.305-2.543-.961-3.024zm-2.747 2.543c-.619.756-1.58 1.511-.481 3.229c.343.343.48 1.237.48 1.512c0 0 1.65-.962.62-2.748c-.619-.893-.894-1.718-.62-1.993zm-5.017 5.91a.687.687 0 0 0-.686.686c0 2.336.343 10.374 3.779 14.29a.62.62 0 0 0 .48.207h5.772a.63.63 0 0 0 .481-.206c3.436-3.848 3.779-11.887 3.779-14.291a.69.69 0 0 0-.688-.687zm1.993 2.128h9.07a.69.69 0 0 1 .687.688c0 1.924-.344 7.35-2.68 10.168c-.206.137-.343.207-.549.207h-4.054a.62.62 0 0 1-.481-.207c-2.336-2.748-2.61-8.244-2.68-10.168a.69.69 0 0 1 .687-.688m8.657 4.672s-.068.62-1.717 1.238c-2.267.824-6.252.274-6.252.274c.343 1.443.892 2.817 1.717 3.848c.069.137.274.205.412.205h3.436q.205 0 .412-.205c1.168-1.374 1.718-3.505 1.992-5.36M20.2 48.747v.757h35.11c0-.275-.069-.482-.069-.757zm50.362 0c0 .275-.069.482-.069.757H107.8v-.757Zm-22.674 7.489c-1.03 0-1.993.137-2.886.55c-.893.343-1.649.893-2.267 1.511a6.9 6.9 0 0 0-1.512 2.267c-.343.894-.548 1.786-.548 2.748v.07c0 .961.205 1.924.548 2.749q.516 1.339 1.443 2.267c.618.618 1.375 1.168 2.268 1.511a8 8 0 0 0 2.886.549c1.03 0 1.991-.136 2.885-.549c.893-.343 1.65-.893 2.268-1.511a6.9 6.9 0 0 0 1.512-2.267c.343-.894.548-1.788.548-2.75v-.069a7.3 7.3 0 0 0-.548-2.748q-.516-1.339-1.443-2.267c-.618-.618-1.375-1.168-2.268-1.511a8 8 0 0 0-2.886-.55m18.963 0c-1.1 0-1.992.206-2.885.55c-.893.343-1.65.893-2.268 1.511a8 8 0 0 0-1.443 2.267a7.3 7.3 0 0 0-.549 2.748v.07c0 .961.205 1.855.549 2.749q.515 1.339 1.443 2.267c.618.618 1.375 1.168 2.2 1.511a7 7 0 0 0 2.747.549c.619 0 1.237 0 1.855-.137c.481-.068 1.03-.274 1.443-.48c.412-.207.824-.414 1.236-.757s.756-.619 1.1-1.031l-1.58-1.58c-.619.55-1.237.962-1.787 1.306c-.55.343-1.304.48-2.129.48c-.618 0-1.238-.205-1.787-.411c-.55-.206-1.031-.619-1.443-1.031c-.412-.481-.756-.962-.962-1.58c-.206-.62-.343-1.238-.343-1.925v-.067c0-.619.137-1.238.343-1.857c.275-.55.55-1.098.962-1.51a5.5 5.5 0 0 1 1.443-1.03c.55-.276 1.1-.413 1.787-.413c.825 0 1.51.138 2.13.481a10 10 0 0 1 1.718 1.236l1.58-1.786c-.344-.343-.688-.618-1.032-.893c-.343-.275-.755-.481-1.167-.687c-.48-.138-.893-.275-1.443-.412c-.55-.07-1.1-.138-1.718-.138m32.293.206l-6.047 13.81h2.474l1.442-3.297h6.458l1.376 3.298h2.54l-6.045-13.81zm-77.227.07v13.81h2.405v-9.827l4.26 6.39h.069l4.328-6.457v9.825h2.405V56.51h-2.542l-4.192 6.46l-4.191-6.458zm55.172 0v13.74h2.404v-5.771h6.596v5.772h2.405V56.51h-2.405v5.703h-6.596V56.51ZM47.82 58.434q1.031 0 1.855.412a5.5 5.5 0 0 1 1.443 1.031c.412.481.756.961.962 1.58c.206.618.343 1.236.343 1.923v.07c0 .617-.137 1.236-.343 1.854c-.275.55-.55 1.1-.962 1.512a5.5 5.5 0 0 1-1.443 1.03q-.825.413-1.855.413c-.618 0-1.306-.137-1.856-.412a5.5 5.5 0 0 1-1.442-1.031c-.412-.481-.755-.962-.961-1.58c-.207-.62-.345-1.238-.345-1.925v-.067c0-.619.138-1.238.345-1.857c.274-.55.55-1.098.961-1.51a5.5 5.5 0 0 1 1.442-1.03q.826-.413 1.856-.413m52.422.893l2.336 5.496h-4.672ZM20.2 74.581v.755h87.6v-.755z"/>
</svg>
);Other libraries
Mocha in 3 more libraries
Each library draws it its own way. Open one to compare.
Devicon
More like it
Icons that share its tags, in the same style.
Search Devicon
Skip the copy and paste. With Pro, your AI agent finds and installs any Devicon icon from a prompt.
Get ProTags
Browse by tag
Mocha is tagged react, javascript, framework and 2 more. Related tags follow; each opens its icons from every library.
Pricing
Devicon MCP, with Pro
Ask for Mocha or any of 1,026 Devicon icons and your agent installs it. The MCP comes with every Pro plan, with 6,000+ blocks and 14 premium templates. The icons stay free.
4.9/5 out of 5 · 150+ reviewsfrom 150+ founders and developers.
- Secure checkout via Stripe
- Code lives in your repo
- Keep what you've shipped if you cancel
- License terms
FAQ
Frequently asked questions
What the Mocha icon means and where it's used, then how to install, style, label and license it.
The Mocha icon represents the Mocha JavaScript testing framework, a popular tool for building and running tests. Mocha is known for its flexibility and customization options.
The Mocha icon appears in various testing and development tools, such as Mocha's official website, GitHub, and Stack Overflow. It is often used to represent testing and quality assurance features.
From a UX perspective, the Mocha icon communicates the idea of testing and quality assurance. It helps users understand the functionality of testing software and navigate interfaces related to test automation.
Mocha is one of 1,026 icons in Devicon, made by konpa and released under MIT. It is drawn on a 128 × 128 grid.
Sign in (it's free), then open Get icon, Install with shadcn CLI, and pick your package manager to copy the command. It adds MochaIcon to components/icons/devicon-mocha.tsx: one file, a size prop (24 by default) and every SVG prop, with no icon package.
Copy it as React (from Get icon, or the Code section): a typed MochaIcon component you paste into your project, with no package to install. Only the icons you import reach your bundle. It works in Next.js and any React app.
Open Get icon, then Copy as code, and pick Vue, Svelte, Angular, Solid or Preact; the Code section shows each one too. Every version is one self-contained component with the SVG inside, and SVG and data URL copies are there for plain HTML and CSS.
With Pro, the shadcn.io MCP server lets Claude Code, Cursor or any MCP client find the Mocha icon, or any of 1,026 Devicon icons, and install it from a prompt.
It's multicolor, so it keeps its own colors.
Set width and height on the component, or a class like size-6. It's drawn on a 128 × 128 grid, so it stays sharp at any size. Customize also sets the size it exports at, its padding and rotation.
Yes. It keeps its own colors in light and dark mode, so check it against both backgrounds. The icon is a vector, so it needs no separate dark asset.
Next to a visible label it's decoration: add aria-hidden="true" so screen readers skip it. Standing alone, as in an icon button, give the button a name instead, like aria-label="Mocha", so screen readers say what it does.
Yes. MochaIcon passes every SVG prop to the svg element, so <MochaIcon aria-hidden="true" /> works, and so do role="img" with aria-label, or a title child, when it carries meaning on its own.
Yes. Open Get icon, then Download file: SVG for code or design tools like Figma; PNG, WebP or JPEG at 512px; or an ICO favicon with 16, 32 and 48px inside. Each one uses what you set in Customize.
Yes. MIT allows commercial use; keep the license notice when you ship the icons' source files. The full terms are in the license, linked on this page.
No visible credit is required: MIT only asks that you keep the license notice if you ship the icons' source files. Icons installed with the shadcn CLI already start with a comment naming Devicon, konpa and the license.
Yes. Copying and downloading it is free, and the shadcn CLI install only needs a free account.
3 other libraries draw an icon called Mocha. The Other libraries section on this page shows each one, so you can compare them and open the one that fits your style.
Its tags are react, javascript, framework, testing and nodejs. Each tag page lists the icons that carry it from every library, which is the quickest way to find a match for Mocha in another set.
4.9 out of 5 from 150+ developers
Install Mocha from a prompt
MCP, 6,000+ blocks and 14 premium templates in every Pro plan. The icons stay free.
Get Pro