QUnit 3.0.0 Released

đź“— Check out the QUnit 3.0 Upgrade Guide

Added

Changed

Fixed

  • CLI: Fix confusing “No tests” message after an early uncaught error. #1790
  • Core: Fix internal QUnit.config.currentModule for the initial unnamed module to be a complete object. 5812597b7f
  • Core: Fix crash when “bad thenable” is returned from global module hook. 3209462b88
  • Core: Fix crash when mixing test.only() with module.only(). 99aee51a8a
  • Core: Fix QUnit.config.maxDepth to allow changes at runtime. QUnit.dump.maxDepth is now a live alias to QUnit.config.maxDepth. 0a26e2c883

Removed

  • Core: Remove support for Node.js 10-16. Node.js 18 or later is required. (NullVoxPopuli) #1727
  • Core: Remove support for PhantomJS. (Steve McClure) #1505
  • Core: Remove built-in export for AMD. You can continue to load your application and your QUnit tests with AMD/RequireJS. This change only affects the loading of the qunit.js file itself. Example: Loading with RequireJS. (NullVoxPopuli) #1729
  • Core: Remove deprecated QUnit.load(). #1084
  • Core: Remove deprecated QUnit.onError() and QUnit.onUnhandledRejection() in favor of QUnit.onUncaughtException().
  • Core: Remove undocumented details.modules[].tests from QUnit.begin() event.
  • Core: Remove undocumented QUnit.dump.HTML and QUnit.dump.multiline. 8e881f5087
  • HTML Reporter: Remove support for legacy markup. Use <div id="qunit"> instead. Check Browser Runner § Getting started.
  • Build: Discontinue publishing to the Bower registry for new releases. Review How to install or Getting Started in the browser. #1677

See also