Discourse Writing JS Tests

Write and structure JavaScript/QUnit tests for Discourse core, plugins, and themes. Use when creating or modifying unit tests (lib/utility/service/model), component rendering tests, integration tests, or acceptance tests. Covers module naming, setupTest/setupRenderingTest/setupApplicationTest, fixtures, the qunit-helpers toolbox, pretender, and qunit-dom assertions.

discourse 52220e4 10.6 KB Updated

File contents

discourse/discourse/tree/main/.skills/discourse-writing-js-tests commit 52220e4b69

Frequently asked questions

npx skillmds@latest add discourse/discourse-writing-js-tests