QUnit
  • Guides
    • Getting Started
    • Download
    • Browser Runner
    • Command-line Interface
    • Compatibility
    • Test lifecycle
    • QUnit 2.0 Upgrade Guide
  • Documentation
  • Blog
  • Community
    • Support & Chat
    • Plugins
    • Who's using QUnit?
    • About QUnit
    • Badge
    • Brand Guidelines

QUnit API

If you’re new to QUnit, check out Getting Started!

QUnit is a powerful, easy-to-use JavaScript unit test suite. QUnit has no dependencies and supports Node.js, SpiderMonkey, and all major browsers.

  • Main methods
  • Assertions
  • Callback events
  • Configuration options
  • Reporters
  • Extension interface

Main methods

  • QUnit.module()
  • QUnit.start()
  • QUnit.test()
  • QUnit.test.each()
  • QUnit.test.if()
  • QUnit.test.only()
  • QUnit.test.skip()
  • QUnit.test.todo()

Assertions

Callback events

Async control

Configuration

Reporters

Extension interface

Deprecated methods

Removed methods

GitHub Chat Mastodon Bluesky Twitter

Copyright OpenJS Foundation and contributors.
Edit this page