@wolfstar/http-framework-test-utils dispatches Discord interaction payloads through a testable client. Tests exercise the
real router and command classes without opening a port or calling Discord.
Install
Register Matchers
Add the package’s optional Vitest entry point to your setup file:Create a Harness
Choose the Right Assertion
toHaveJsonBody compares every nested key. Prefer toMatchObject when the interaction response contains unrelated
metadata.