Skip to content

Releases: qunitjs/qunit

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

2.13.0

30 Nov 00:50
2.13.0
Compare
Choose a tag to compare

Added

  • Core: Log test name as part of "Assertion after test" failures. (brandonocasey) #1517
  • CLI: Add native support for ESM .mjs files on Node 12+. (Timo Tijhof) #1465

Deprecated

  • HTML Reporter: Deprecate PhantomJS. (Steve McClure)

Fixed

  • Core: Count tests run so that suiteEnd emits correctly with active filters. (Stephen Yeung) #1416
  • Core: Fix test counter bug when nesting invalid test functions. (Timo Tijhof)
  • HTML Reporter: Avoid leaking Map global in older browsers. (Timo Tijhof)

2.12.0

09 Nov 01:24
2.12.0
Compare
Choose a tag to compare

Added

  • Core: Add QUnit.test.* aliases for QUnit.only(), QUnit.skip(), and QUnit.todo(). (Steve McClure) #1496
  • Assert: Support arrow functions in assert.throws() as expected matcher callback. (Steve McClure) #1492

Changed

  • CLI: Update node-watch and commander dependencies. (Timo Tijhof) #1500

Deprecated

  • Core: Deprecate QUnit.extend(). (Steve McClure) #1491