test: tighten respawn plan assertion

This commit is contained in:
Peter Steinberger
2026-05-09 03:05:30 +01:00
parent 25bfe29024
commit 31ffaf0544

View File

@@ -13,7 +13,7 @@ import {
type CliRespawnPlan = NonNullable<ReturnType<typeof buildCliRespawnPlan>>;
function expectCliRespawnPlan(plan: ReturnType<typeof buildCliRespawnPlan>): CliRespawnPlan {
expect(plan).toEqual(expect.any(Object));
expect(plan).not.toBeNull();
if (plan === null) {
throw new Error("Expected CLI respawn plan");
}