Assert that an audit entry exists and return the matching entry.
The helper throws a plain Error, so it works with Bun, Vitest, Jest, and other test runners.
Error
Audit entries captured by a memory or fake audit port.
Partial audit fields to match.
The matching audit entry.
Error when no entry matches.
Assert that an audit entry exists and return the matching entry.
The helper throws a plain
Error, so it works with Bun, Vitest, Jest, and other test runners.