Skip to content

Commit cc071d1

Browse files
committed
test(objectql): the sparse fake's refusals no longer name the driver literal, so the where-matcher lift judges it (#29538)
check:where-matcher reads identifiers out of the template text too, lifted the `driver` literal and its `name` shorthand with the matcher, and filed it unjudged. The matcher refuses every operator it does not implement; it now reads CONFORMING. Claude-Session: https://claude.ai/code/session_01JQwxbXRug3R6WZAjtFuAoS Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 94b0457 commit cc071d1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎packages/objectql/src/write-answer-declared-columns.test.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ function makeSparseDriver(name: string, unechoed: readonly string[] = []) {
4646
const matches = (row: Row, where: Record<string, unknown> | undefined): boolean => {
4747
if (!where) return true;
4848
for (const [k, v] of Object.entries(where)) {
49-
if (k.startsWith('$')) throw new Error(`sparse driver: filter operator ${k} is not implemented`);
50-
if (v !== null && typeof v === 'object') throw new Error(`sparse driver: operator on ${k} is not implemented`);
49+
if (k.startsWith('$')) throw new Error(`sparse fake: filter operator ${k} is not implemented`);
50+
if (v !== null && typeof v === 'object') throw new Error(`sparse fake: operator on ${k} is not implemented`);
5151
if ((row[k] ?? null) !== (v ?? null)) return false;
5252
}
5353
return true;

0 commit comments

Comments
 (0)