test: tighten config footprint record assertion

This commit is contained in:
Shakker
2026-05-08 17:14:12 +01:00
parent 069aa10c18
commit d470d89327

View File

@@ -53,8 +53,7 @@ function collectSchemaPaths(schema: unknown, prefix = ""): string[] {
}
function asRecord(value: unknown): Record<string, unknown> {
expect(value).not.toBeNull();
expect(typeof value).toBe("object");
expect(value).toEqual(expect.any(Object));
expect(Array.isArray(value)).toBe(false);
return value as Record<string, unknown>;
}