Movatterモバイル変換


[0]ホーム

URL:


QUnit

QUnit

The powerful, easy-to-use JavaScript testing framework.

Get StartedView the Docs

Easy

Zero configuration and setup for any Node.js project, and minimal setup for Browser-based projects.

Universal

QUnit can run anywhere; web browsers, Node, SpiderMonkey, even in a Web Worker! Test your code where it runs.

Extensible

Flexible APIs for custom assertions, runners, and reporters mean you can extend QUnit to fit your needs.


A Quick Example

functionadd(a,b){returna+b;}QUnit.module('add',(hooks)=>{QUnit.test('two numbers',(assert)=>{assert.equal(add(1,2),3);});});

Browser Result

CLI Result

TAP version 13ok1 add > two numbers1..1# pass 1# skip 0# todo 0# fail 0

Current Release

v2.25.0 (changelog)

These are the officialrelease channels for QUnit:


Join the Community

Follow us onMastodon orBluesky


What are you waiting for?Get started!


[8]ページ先頭

©2009-2026 Movatter.jp