QUnit<p>I'm drafting a diagram to explain how before/after hooks work in unit tests.</p><p>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.</p><p>Page:<br><a href="https://qunitjs.com/api/QUnit/module/#hooks" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">qunitjs.com/api/QUnit/module/#</span><span class="invisible">hooks</span></a></p><p>Issue tracker:<br><a href="https://github.com/qunitjs/qunit/issues/1358#issuecomment-2614663327" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/qunitjs/qunit/issue</span><span class="invisible">s/1358#issuecomment-2614663327</span></a></p><p>What do you think?</p><p><a href="https://fosstodon.org/tags/qunit" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>qunit</span></a> <a href="https://fosstodon.org/tags/WriteTheDocs" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>WriteTheDocs</span></a> <a href="https://fosstodon.org/tags/TechnicalWriting" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>TechnicalWriting</span></a> <a href="https://fosstodon.org/tags/SoftwareDocumentation" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SoftwareDocumentation</span></a> <a href="https://fosstodon.org/tags/documentation" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>documentation</span></a> <a href="https://fosstodon.org/tags/devex" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>devex</span></a></p>