File Type Mocha
The Mocha icon represents the popular testing framework for Node.js and JavaScript applications.
Exports at 24 × 24 px
Code
File Type Mocha in your framework
In any framework. Customize it above, and the code follows.
export const FileTypeMochaIcon = (props: React.SVGProps<SVGSVGElement>) => (
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 32 32" {...props}>
<path fill="#8d6748" d="M27.573 23.545L16.751 29.8a1.49 1.49 0 0 1-1.5 0L4.427 23.545a1.5 1.5 0 0 1-.751-1.293V9.748a1.48 1.48 0 0 1 .751-1.293L15.249 2.2a1.49 1.49 0 0 1 1.5 0l10.824 6.255a1.5 1.5 0 0 1 .751 1.293v12.5a1.57 1.57 0 0 1-.751 1.293Z"/><path fill="#fff" d="M22.772 12.994a.653.653 0 0 0-.651-.651H9.879a.653.653 0 0 0-.651.651c0 2.214.326 9.833 3.581 13.544a.6.6 0 0 0 .456.2h5.47a.6.6 0 0 0 .456-.2c3.256-3.647 3.581-11.265 3.581-13.544m-4.819 11.851h-3.841a.6.6 0 0 1-.456-.2c-2.214-2.6-2.474-7.814-2.54-9.637a.653.653 0 0 1 .651-.651h8.6a.653.653 0 0 1 .651.651c0 1.823-.326 6.967-2.54 9.637a.87.87 0 0 1-.525.2m-.716-13.805a2.716 2.716 0 0 0 .912-3.84c-.847-1.3-1.237-2.409-.912-2.865c-.847 1.042-2.279 2.149-.716 4.493a3.67 3.67 0 0 1 .716 2.212m-2.604.196a1.83 1.83 0 0 0 .586-2.6c-.586-.847-.847-1.628-.586-1.888c-.586.716-1.5 1.433-.456 3.06a2.63 2.63 0 0 1 .456 1.428"/><path fill="#fff" d="M19.972 18.789a10.45 10.45 0 0 1-1.888 5.079a.56.56 0 0 1-.391.2h-3.256a.46.46 0 0 1-.391-.2a9.3 9.3 0 0 1-1.628-3.647s3.777.521 5.926-.26c1.563-.586 1.628-1.172 1.628-1.172"/>
</svg>
);VSCode Icons
More like it
Icons that share its tags, in the same style.
Search VSCode Icons
Skip the copy and paste. With Pro, your AI agent finds and installs any VSCode Icons icon from a prompt.
Get ProTags
Browse by tag
File Type Mocha is tagged automation, javascript, devops and 3 more. Related tags follow; each opens its icons from every library.
Pricing
VSCode Icons MCP, with Pro
Ask for File Type Mocha or any of 1,426 VSCode Icons 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 File Type Mocha icon means and where it's used, then how to install, style, label and license it.
The Mocha icon represents the popular testing framework for Node.js and JavaScript applications. Mocha is a widely-used testing library that provides a rich set of features for writing and executing tests. It is often used in combination with other testing libraries and tools to ensure the quality and reliability of software applications.
In real-world applications, the Mocha icon appears in various software development and testing tools, such as Visual Studio Code, GitHub, and npm. Developers use Mocha to write and run tests for their applications, ensuring that the code works as expected.
From a UX perspective, the Mocha icon communicates a sense of quality and reliability. When users see the Mocha icon, they understand that the application or tool has been thoroughly tested and validated, giving them confidence in its performance.
File Type Mocha is one of 1,426 icons in VSCode Icons, made by Roberto Huertas and released under MIT. It is drawn on a 32 × 32 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 FileTypeMochaIcon to components/icons/vscode-icons-file-type-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 FileTypeMochaIcon 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 File Type Mocha icon, or any of 1,426 VSCode Icons 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 32 × 32 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="File Type Mocha", so screen readers say what it does.
Yes. FileTypeMochaIcon passes every SVG prop to the svg element, so <FileTypeMochaIcon 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 VSCode Icons, Roberto Huertas and the license.
Yes. Copying and downloading it is free, and the shadcn CLI install only needs a free account.
Its tags are automation, javascript, devops, testing, nodejs and QA. Each tag page lists the icons that carry it from every library, which is the quickest way to find a match for File Type Mocha in another set.
VSCode Icons draws many icons in several styles: Light next to the default. Open the library and pick a style above the grid to see File Type Mocha's siblings in it.
4.9 out of 5 from 150+ developers
Install File Type Mocha from a prompt
MCP, 6,000+ blocks and 14 premium templates in every Pro plan. The icons stay free.
Get Pro