Several test files used assert.ok(Array.isArray(x)) or assert.ok(result) patterns that verify structure/existence without checking actual values. These pass even when the code returns wrong data. - web-diagnostics-contract: Array.isArray() checks → deepEqual([], []) for fields constructed as empty; DoctorFixResult uses deepEqual(["fix1"]) instead of Array.isArray + length; InstanceType<typeof GSDWorkspaceStore> for type assertions from dynamic import - skill-lifecycle: computeStaleAvoidList → deepEqual(result, []) since nonexistent path must return empty - blob-store: remove redundant assert.ok(retrieved) before deepEqual - discovery-cache: assert.ok(entry) existence check → verify models[0].id Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| native | ||
| pi-agent-core | ||
| pi-ai | ||
| pi-coding-agent | ||
| pi-tui | ||