Back to Mocha

Mocha

docs-next/src/content/docs/index.mdx

11.7.62.2 KB
Original Source

import { LinkButton } from "@astrojs/starlight/components"; import { Image } from "astro:assets";

import supporters from "../data/supporters.json"; import Badges from "../../components/Badges.astro"; import ClientRedirects from "../../components/ClientRedirects.astro"; import Supporters from "../../components/Supporters.astro";

:::note[New Site Preview] Hello! Welcome to this preview of a revamped mochajs.org docs site!

This is an early stage preview. If you see any bugs or typos, please file a docs issue on mochajs/mocha. Thanks! šŸ¤Ž :::

<Badges />

Mocha is a feature-rich JavaScript test framework running on Node.js and in the browser, making asynchronous testing straightforward and fun. Mocha tests run serially, allowing for flexible and accurate reporting, while mapping uncaught exceptions to the correct test cases.

<LinkButton href="/next/getting-started">Get Started</LinkButton> <LinkButton href="/next/running/configuring" variant="secondary"> Configuration Reference </LinkButton>

Sponsors

Use Mocha at work? Ask your manager or marketing team if they'd help support our project. Your company's logo will also be displayed on npmjs.com and our GitHub repository.

<Supporters size="medium" data={supporters.sponsors} />

Backers

Find Mocha helpful? Become a backer and support Mocha with a monthly donation.

<Supporters size="small" data={supporters.backers} />

More Information

In addition to chatting with us on our Discord, for additional information such as using spies, mocking, and shared behaviours be sure to check out the Mocha Wiki on GitHub. For a running example of Mocha, view example/tests.html.

For the JavaScript API, view the API documentation or the source.

<ClientRedirects client:load />