Skip to content

Releases: qunitjs/qunit

2.18.2

21 Apr 00:50
2.18.2
Compare
Choose a tag to compare

Changed

  • HTML Reporter: Improve accessibility and design of the module filter. (Timo Tijhof) #1664
  • HTML Reporter: Improve fuzzy-matching of the module filter. #1685

Fixed

  • HTML Reporter: Faster rendering of module filter results. (Thanks @mixonic!) #1664, #1685
  • HTML Reporter: Fix retention of state over multiple module searches. (Thanks @jembezmamy!) #1683
  • HTML Reporter: Fix runtime to be rounded in Chromium. #1678

2.18.1

29 Mar 23:03
2.18.1
Compare
Choose a tag to compare

Fixed

  • HTML Reporter: Fix source attribution for test definitions. (Thanks @phanirithvij!) #1679
  • Core: Fix preconfig support in SpiderMonkey and other environments. 0befe2aafe
  • Core: Improve performance of async pauses with native Map when available. aa7314b431

2.18.0

16 Feb 10:51
2.18.0
Compare
Choose a tag to compare

Added

Fixed

  • CLI: Fix ESM file imports on Windows to use file-protocol URLs. #1667
  • CLI: Improve performance of watch mode by recursively ignoring directories. (@Krinkle) #1676

2.17.2

20 Sep 05:22
2.17.2
Compare
Choose a tag to compare

Changed

Fixed

  • Core: Correctly ignore late tests after a nested QUnit.module.only() closure. (Steve McClure @smcclure15) #1645
  • Core: Restore fake test for "No tests were run" message. #1652
  • HTML Reporter: Restore URL parameter reading. #1657

2.17.1

09 Sep 00:42
2.17.1
Compare
Choose a tag to compare

Fixed

  • HTML Reporter: Fix display: none regression with the "global failure" message. (Timo Tijhof) #1651

2.17.0

05 Sep 18:25
2.17.0
Compare
Choose a tag to compare

Added

  • HTML Reporter: Add "Rerun failed tests" link. (Jan Buschtöns @buschtoens) #1626
  • Core: New error event for bailing on uncaught errors. (Timo Tijhof) #1638

Changed

  • Core: Improve warning for incorrect hook usage to include module name. (Chris Krycho @chriskrycho) #1647

Deprecated

  • Core: The internal QUnit.onError and QUnit.onUnhandledRejection callbacks are deprecated. #1638

    These were undocumented, but may have been used in a fork or other custom runner for QUnit.
    Switch to the supported QUnit.onUncaughtException instead.

Fixed

  • Assert: Improve validation handling of assert.throws() and assert.rejects(). (Steve McClure @smcclure15) #1637
  • Core: Ensure skipped child module hooks don't leak memory. (Ben Demboski @bendemboski) #1650
  • Core: Fix bad module nesting when module closure throws global error. #1478
  • Core: Fix reporting of uncaught errors during QUnit.begin(). (Timo Tijhof) #1446
  • Core: Fix reporting of uncaught errors during or after QUnit.done(). (Timo Tijhof) #1629

2.16.0

07 Jun 01:41
2.16.0
Compare
Choose a tag to compare

Added

Changed

  • Assert: Indicate which test a drooling assert.async() callback came from. (Steve McClure @smcclure15) #1599

Deprecated

  • Core: Warn when a module callback has a promise as a return value. (Ray Cohen @raycohen) #1600

Fixed

  • Core: Fix QUnit.module.only() regression in 2.14.0, where some unrelated modules also executed. (Steve McClure) #1610
  • CLI: Improve ESM detection. (Steve McClure) #1593
  • HTML Reporter: Increase contrast and use richer colors overall. (Timo Tijhof) #1587

2.15.0

12 Apr 21:17
2.15.0
Compare
Choose a tag to compare

Changed

  • HTML Reporter: Trim whitespace of the filter input. (Nathaniel Furniss) #1573
  • CLI: Upgrade js-reporters to 2.0.0. #1577

Deprecated

  • Core: Warn when setting hooks for a different module. (Ray Cohen) #1586

Fixed

  • Assert: Fix assert.throws() to fail gracefully when expected class does not match. (Steve McClure) #1530
  • CLI: Fix TAP output to support cyclical objects. (Zachary Mulgrew) #1555, js-reporters#104
  • CLI: Fix TAP output for the Infinity value, previously became null. (Timo Tijhof) #1406
  • CLI: Fix TAP output going silent if console object is mocked. (Timo Tijhof) #1340

2.14.1

01 Apr 00:24
2.14.1
Compare
Choose a tag to compare

Changed

  • CLI: Upgrade commander to 7.1.0. (Timo Tijhof) #1564

Fixed

  • Core: Restore strict mode compatibility. (Edward Faulkner) #1558
  • HTML Reporter: Check for undefined testItem in testDone callback.

2.14.0

12 Jan 06:29
2.14.0
Compare
Choose a tag to compare

Added

  • HTML Reporter: Use a fixed header with scrollable test results. (Bryan Crotaz) #1513
  • Core: Add official support for SpiderMonkey runtime. (Timo Tijhof) #1535

Changed

  • CLI: Update and re-audit tiny-glob and node-watch dependencies. #1522, #1524

Fixed

  • HTML Reporter: Set main and navigation ARIA roles. (Steve McClure) #1427
  • Core: Fix QUnit.module.only logic for unscoped modules. (Steve McClure) #1272
  • Assert: Fix assert.timeout() bug causing a non-async test to fail. #1539