QUnit.config.countStepsAsOne
version added: 2.21.1.
Description
Count assert.verifySteps()
as one assertion for the assert.expect()
count.
type | boolean |
---|---|
default | false |
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.