Back to Qunit

QUnit.config.module

docs/api/config/module.md

2.26.0904 B
Original Source

Select a single test module to run by name.

<table> <tr> <th>type</th> <td markdown="span">`string` or `undefined`</td> </tr> <tr> <th>default</th> <td markdown="span">`undefined`</td> </tr> </table> <p class="note" markdown="1">This option can also be set by URL query parameter.</p>

When specified, only a single module will be run if its name is a complete case-insensitive match. If no module name matches, then no tests will be run.

This option is undefined by default, which means all loaded test modules will be run.

See also:

Changelog

| QUnit 1.23 | The public config property was restored. | QUnit 1.16 | The public config property was removed (the URL query parameter was unaffected).