Skip to main content
This example shows how to use database assertions to verify that API calls produce the expected database changes.
Run with --allow-db to enable database assertions: hitspec run tests/ --allow-db

Setup

Create and Verify

Update and Verify

Delete and Verify

Run It

Last modified on February 10, 2026