QUnit 2.21.0 Released: Add assert.closeTo
Introduce assert.closeTo()
to make number comparisons easy. Credit to James M. Greene for the original qunit-assert-close plugin!
This release deprecates tests that don’t set a timeout but take longer than 3 seconds. See also How to set a timeout.
Changelog
Added
- Assert: Add
assert.closeTo()
for float-friendly number comparisons. (Timo Tijhof) #1735 - Core: Add support for flat preconfig via environment/global variables. (Timo Tijhof)
Deprecated
- Core: Deprecate
QUnit.load()
and document migration path at https://qunitjs.com/api/QUnit/load/. (Timo Tijhof) #1743 - Core: Deprecate unset testTimeout for tests taking longer than 3 seconds. (Timo Tijhof) #1483