---
id: app/references/bundled-libraries
title: Bundled Libraries in Cypress
description: Open source testing libraries bundled with Cypress
section: app
source_path: docs/app/references/bundled-libraries.mdx
version: fa8f60eba6ec9a949b75fe9f9f5f6591719cd01f
updated_at: '2026-05-05T21:21:10.048Z'
---
# Bundled Libraries

Cypress relies on many open source testing libraries to lend stability and familiarity to the platform from the get-go. If you've been testing in JavaScript, you'll recognize many old friends in this list.

## Mocha

[http://mochajs.org/](http://mochajs.org/)

Cypress has adopted Mocha's `bdd` syntax, which fits perfectly with both integration and unit testing. All of the tests you'll be writing sit on the fundamental harness Mocha provides, namely:

*   [`describe()`](http://mochajs.org/#bdd)
*   [`context()`](http://mochajs.org/#bdd)
*   [`it()`](http://mochajs.org/#bdd)
*   [`before()`](http://mochajs.org/#hooks)
*   [`beforeEach()`](http://mochajs.org/#hooks)
*   [`afterEach()`](http://mochajs.org/#hooks)
*   [`after()`](http://mochajs.org/#hooks)
*   [`.only()`](http://mochajs.org/#exclusive-tests)
*   [`.skip()`](http://mochajs.org/#exclusive-tests)

Additionally, Mocha gives us excellent [`async` support](http://mochajs.org/#asynchronous-code). Cypress has extended Mocha, sanding off the rough edges, weird edge cases, bugs, and error messages. These fixes are all completely transparent.

[Check out our guide to writing and organizing tests.](/llm/markdown/app/core-concepts/writing-and-organizing-tests.md)

## Chai

[http://chaijs.com/](http://chaijs.com/)

While Mocha provides us a framework to structure our tests, Chai gives us the ability to easily write assertions. Chai gives us readable assertions with excellent error messages. Cypress extends this, fixes several common pitfalls, and wraps Chai's DSL using [subjects](/llm/markdown/app/core-concepts/introduction-to-cypress.md#Assertions) and the [`.should()`](/llm/markdown/api/commands/should.md) command.

[List of available Chai Assertions](/llm/markdown/app/references/assertions.md#Chai)

## Chai-jQuery

[https://github.com/chaijs/chai-jquery](https://github.com/chaijs/chai-jquery)

When writing integration tests, you will likely work a lot with the DOM. Cypress brings in Chai-jQuery, which automatically extends Chai with specific jQuery chainer methods.

[List of available Chai-jQuery Assertions](/llm/markdown/app/references/assertions.md#Chai-jQuery)

## Sinon.js

[https://github.com/sinonjs/sinon](https://github.com/sinonjs/sinon)

When writing unit tests, or even in integration-like tests, you often need to ability to stub and spy methods. Cypress includes two methods, [`cy.stub()`](/llm/markdown/api/commands/stub.md) and [`cy.spy()`](/llm/markdown/api/commands/spy.md) that return Sinon stubs and spies, respectively.

Cypress also exposes a utility so that `sinon` can be called anywhere inside of your tests using [`Cypress.sinon`](/llm/markdown/api/utilities/sinon.md).

[Check out our guide for working with spies, stubs, and clocks.](/llm/markdown/app/guides/stubs-spies-and-clocks.md)

## Sinon-Chai

[https://github.com/cypress-io/sinon-chai](https://github.com/cypress-io/sinon-chai)

When working with `stubs` or `spies` you'll regularly want to use those when writing Chai assertions. Cypress bundles in Sinon-Chai which extends Chai allowing you to [write assertions](https://github.com/cypress-io/sinon-chai) about `stubs` and `spies`.

[List of available Sinon-Chai Assertions](/llm/markdown/app/references/assertions.md#Sinon-Chai)

## Other Library Utilities

Cypress also bundles the following tools on the `Cypress` object. These can be used anywhere inside of your tests.

*   [`Cypress._`](/llm/markdown/api/utilities/_.md) (lodash)
*   [`Cypress.$`](/llm/markdown/api/utilities/$.md) (jQuery)
*   [`Cypress.minimatch`](/llm/markdown/api/utilities/minimatch.md) (minimatch.js)
*   [`Cypress.Blob`](/llm/markdown/api/utilities/blob.md) (Blob utils)
*   [`Cypress.Buffer`](/llm/markdown/api/utilities/buffer.md) (Buffer utils)
*   [`Cypress.Promise`](/llm/markdown/api/utilities/promise.md) (Bluebird)
