Skip to content

Testing

The testing entry point also provides an in-memory store, metrics recorder, typed shard transport, execution-context builder, and deterministic fake clock.

Use bun:test and Popii’s popii-framework/testing export. Keep command tests independent from Discord network access. Web plugin tests use the exported createWebApp() factory and Hono’s app.request() without binding a port.

Terminal window
popii test