#qunit — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #qunit, aggregated by home.social.
-
Stickers packed and ready for FOSDEM!
Message me to meet and take some!
Including:
* fresh roll of QUnit stickers
* classic jQuery stickers
* brand new Devo-hat stickers from jQuery's 20th birthday event
* Wikipedia and MediaWiki logos
* (not pictured) tons more misc webperf/JS/foss/moz stickers collected over the years. -
QUnit 2.25 is out!
Highlights from 2.24.1 and 2.25.0:
🧩 Support display of "early" errors in the HTML Reporter, to ease debugging.
✨ Add new test filter callback feature, to simplify building parallel test runners and other cool stuff. Thanks Sebastian Gbudje and @nullvoxpopuli!
🐛 Fix spec compliance bugs in TAP-reporter.Details: https://qunitjs.com/blog/2025/12/30/qunit-2-25-0/
Download: https://qunitjs.com/intro/#release-channels -
Ever wondered how beforeEach works in a unit test framework? qunitjs.com/lifecycle/ While people generally guess right, this demonstrates that the order is guaranteed, and showcases what's possible when you depend on it. Thanks to FND, Jan D, and NullVoxPopuli for their help! #qunit
-
Ever wondered how beforeEach works in unit test frameworks? Check out our new lifecycle diagram!
https://qunitjs.com/lifecycle/
People generally guess right when it comes to ordering, so why a diagram?
We want to show that the order is guaranteed, and showcase what's possible when you depend on it.
Thanks to FND, Jan, and NullVoxPopuli for improving and promoting this work! H/T @FND @simulo @nullvoxpopuli
#qunit #WriteTheDocs #TechnicalWriting #SoftwareDocumentation #documentation #TDD
-
I'm drafting a diagram to explain how before/after hooks work in unit tests.
They tend to work the same way across test frameworks, so it's not unique to QUnit. But, new devs will learn this for the first time, so I think it's worth explaining.
Page:
https://qunitjs.com/api/QUnit/module/#hooksIssue tracker:
https://github.com/qunitjs/qunit/issues/1358#issuecomment-2614663327What do you think?
#qunit #WriteTheDocs #TechnicalWriting #SoftwareDocumentation #documentation #devex #TDD
-
QUnit 2.24.0 is out!
Highlights from 2.23.1 and 2.24.0:
📝 Improved CLI output with the new stack trace formatter.
🧩 Include mjs and cjs files by default when testing a directory.
✨ There is a new QUnit Blog for your feed reader.Details: https://qunitjs.com/blog/2025/01/20/qunit-2-24-0/
Download: https://qunitjs.com/intro/#release-channels -
QUnit 2.23.0 is out!
🏷️ Add automatic labels for simple array values in `QUnit.test.each()`.
Changelog: https://github.com/qunitjs/qunit/blob/main/History.md#2230--2024-12-03
Download: https://qunitjs.com/intro/#release-channelsLearn more:
https://qunitjs.com/api/QUnit/test.each/ -
QUnit 2.22.0 is out!
☑️ New `test.if()` and `module.if()` functions to facilitate conditional skipping.
Changelog: https://github.com/qunitjs/qunit/blob/2.22.0/History.md
Download: https://qunitjs.com/intro/#release-channels
Docs: https://qunitjs.com/api/QUnit/test.if/ -
Oh my,
a web component?
on jquery dot com?minibar is a 2kB standalone search widget. Accessible and progressively-enhancing (works without JavaScript!). An alternative to the popular 100kB DocSearch.js widget.
It goes well with Typesense, an awesome FLOSS open-source alternative to Algolia. And it's (if you want, and yes we do) self-hostable!
https://github.com/jquery/typesense-minibar
Demo: https://jquery.com/
or https://qunitjs.com/#webperf #typesense #ProgressiveEnhancement #algolia #jquery #qunit
-
QUnit 2.21.1 is out!
🐛 Fix bug in stacktrace cleaner.
🐛 Fix bug where a second "Hide passed" click reversed test results.
👉 Add notice about upcoming change in how assert.expect() counts steps for assert.verifySteps().Details: https://github.com/qunitjs/qunit/blob/2.21.1/History.md
Download: https://qunitjs.com/intro/#download -
The journey to QUnit 3 has begun!
Most projects require no changes to upgrade. It's the same easy-to-use API you know.
If you use/maintain plugins, themes, or other integrations, minor changes might be needed. Take QUnit 3.0.0-alpha for a spin, and let us know about any surprises or issues!
Changelog: https://github.com/qunitjs/qunit/blob/3.0.0-alpha.4/History.md
Much improved docs: https://qunitjs.com/intro/
New theme design: https://github.com/qunitjs/qunit/pull/1774
Matrix chat: https://app.element.io/#/room/#qunitjs_qunit:gitter.im
-
This is why we added assert.closeTo()!
Indeed, the same need exists in PHP and Python as well.
https://qunitjs.com/api/assert/closeTo/
https://docs.phpunit.de/en/9.6/assertions.html#assertequalswithdelta
https://docs.python.org/3/library/unittest.html#unittest.TestCase.assertAlmostEqual
-
QUnit 2.21 is out!
☑️ New `assert.closeTo` for float-friendly number comparisons.
☑️ New flat preconfig feature for improved interop between plugins.
👉 Deprecate `QUnit.load`, with a new migration guide.
👉 Deprecate unset timeout for tests longer than 3 seconds. Check testTimeout docs for how to set a timeout.Credit to James M. Greene for the original qunit-assert-close plugin! #qunit #closeButNoCigar
Details: https://github.com/qunitjs/qunit/blob/2.21.0/History.md
Download: https://qunitjs.com/intro/#release-channels -
-
QUnit 2.20.1
🐛 Fix compat with sinon.useFakeTimers in IE 10 and IE 11.
🐛 Fix hanging assert.async() after assert.timeout().Welcome Timmy Willison @timmywil as QUnit contributor! #qunit #sinon
Details: https://github.com/qunitjs/qunit/blob/2.20.1/History.md
Download: https://qunitjs.com/intro/#release-channels -
QUnit 2.20.0
Highlights:
🐛 Add type check to assert.async().
🐛 Remove units for 0 values in qunit.css.
⏱ Faster internal inArray operations.Welcome Zixin and Hareesh as QUnit contributors! #qunit
Details: https://github.com/qunitjs/qunit/blob/2.20.0/History.md
Download: https://qunitjs.com/intro/#release-channels -
Check out QUnitX by @izelnakri:
https://github.com/izelnakri/qunitxIt is is the only universal JS/TS test framework that is fast, flexible, zero dependency, and can run your test files interchangably in Node.js, browser, or Deno environments!
-
Guess who's number 1 on the test-runners Speedlify, for the third year in a row!
-
QUnit 2.19.4
Highlights since 2.19.0:
⏱ Faster assert.deepEqual() and QUnit.equiv() by @izelnakri and @krinkle.
⏱ Faster diffing when using config.noglobals.
🐛 Fix memory release from last async test.
🐛 Fix various CLI bugs.
📝 Improve API examples and fix typos.Thanks Izel Nakri, Sergey Astapov, and others for their contributions. #qunit #tdd #ember #javascript
Details: https://github.com/qunitjs/qunit/blob/2.19.4/History.md
Download: https://qunitjs.com/intro/#release-channels