Back to Qunit

QUnit.config.countStepsAsOne

docs/api/config/countStepsAsOne.md

2.25.0753 B
Original Source

Count assert.verifySteps() as one assertion for the assert.expect() count.

<table> <tr> <th>type</th> <td markdown="span">`boolean`</td> </tr> <tr> <th>default</th> <td markdown="span">`false`</td> </tr> </table>

If you have tests that use both assert.expect() and assert.step() with assert.verifySteps() in the same test, you may encounter the following warning on QUnit 2.x:

Counting each assert.step() for assert.expect() is changing
in QUnit 3.0. Omit assert.expect() from tests that use assert.step(),
or enable QUnit.config.countStepsAsOne to prepare for the upgrade.

Refer to assert.expect(): Migration guide for before and after examples.