Test a mod changedplugins/mods/test
Nearest release: v2.1.295, published 4 hours before upstream edited the page. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
Upstream edited this page at 8 Oct 2026 22:59 UTC, give or take a minute or two: the time comes from Anthropic’s own sitemap rather than from a commit. This site recorded the change at 20 Oct 2026 18:37 UTC.
Upstream edited
Recorded here
Lines+2added
Lines−6removed
From line
316
where the diff opens
First seen
1 Oct 2026
this site's first read of the page
Recorded edits6to this page, all time
### Test a drawing after `/clear` ## Test a policy mod
The whole hunk
from line 316, old and new numbered
/
from line 316
316316
317317A drawing test checks the tree your hook returns and whether it's valid for that app. It doesn't check how the app paints it, so look at a new layout in a real session as well.
318318
319<h3 id="test-a-drawing-after-clear">
320 Test a drawing after `/clear`
321</h3>
319### Test a drawing after `/clear`
322320
323321Each test starts with every `$.state` value at its default, which is how `/clear` leaves them. To test what your mod does next, skip `session.start`, fire `classic.SessionStart` with `source: 'clear'`, and check what your mod draws.
324322
from line 341
343341
344342The test passes when your `classic.SessionStart` hook has copied the stored `7` into `$.state` before the pane draws. Without that hook in your module, the pane draws `Count: 0`, `find` returns `undefined`, and the test fails at `toBeDefined`.
345343
346<h2 id="test-a-mod-that-judges-other-mods">
347 Test a policy mod
348</h2>
344## Test a policy mod
349345
350346A mod your organization lists in [`prependPlugins`](/docs/en/plugins/mods/admin) can refuse another mod before it loads. To test one, set your mod's tier and give the test a second mod for yours to allow or refuse:
351347
No line in this hunk matches that.