Trending

#qunit

Latest posts tagged with #qunit on Bluesky

Latest Top
Trending

Posts tagged #qunit

Two rolls of QUnit stickers, as well as various jQuery "Keep calm and call on()" stickers, Wikipedia stickers, and MediaWiki logo stickers.

Two rolls of QUnit stickers, as well as various jQuery "Keep calm and call on()" stickers, Wikipedia stickers, and MediaWiki logo stickers.

Stickers packed and ready for FOSDEM!

Message me to meet and take some!

#fosdem #fosdem2026 #qunit #jquery

3 0 0 0
Imagine a test with global hooks, and a Parent and Child module that use hooks also. The execution order is:
1. Parent module runs the before hook.
2. Every test in the Parent module inherits context from the before hook, and repeats as follows: call global beforeEach, parent beforeEach, the actual test, parent afterEach, and lastly the global afterEach.
3. The Child module inherits context from the Parent before hook, and then runs its own before hook.
4. Every test in the Child module inherits context from this before hook, and repeats as follows: call global beforeEach, parent beforeEach, child beforeEach, the actual test, child afterEach, parent afterEach, and lastly the global afterEach.

Imagine a test with global hooks, and a Parent and Child module that use hooks also. The execution order is: 1. Parent module runs the before hook. 2. Every test in the Parent module inherits context from the before hook, and repeats as follows: call global beforeEach, parent beforeEach, the actual test, parent afterEach, and lastly the global afterEach. 3. The Child module inherits context from the Parent before hook, and then runs its own before hook. 4. Every test in the Child module inherits context from this before hook, and repeats as follows: call global beforeEach, parent beforeEach, child beforeEach, the actual test, child afterEach, parent afterEach, and lastly the global afterEach.

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

2 1 0 0

#JavaScript in #NodeJS, within #Termux on my Android phone. I try to use a minimum of packages (currently, just #QUnit).

The first problems of each year are fairly easy, then they get progressively harder. By day 15, I struggle to complete them within the day, and never completed 20 days.

2 0 0 0

What is best for writing #KnockoutJS tests? #jasmine? #qunit? Something else?

0 0 0 0

Released several JavaScript unit tests written in QUnit for my JetPack "UniquePasswordBuilder" extension : code.google.com/archive/p/uniquepassword... #qunit #js

0 0 0 0