Skip to content

Commit 0f5c7f1

Browse files
committed
test(objectql): read the raised finding codes as a list, not as a lowercase code literal
check:error-code-casing reads `{ code: '<lowercase>' }` as an error.code emission; a destructive-change finding code is the issue's own field-addressed vocabulary. Claude-Session: https://claude.ai/code/session_01Utp6CbJa6hKdimkAau1nbA Co-authored-by: Claude <noreply@anthropic.com>
1 parent 1636d8c commit 0f5c7f1

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

‎packages/objectql/src/protocol-destructive-currency-mode.test.ts‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,9 +154,10 @@ describe('ObjectStackProtocolImplementation - currency_mode_to_record', () => {
154154
},
155155
} as any);
156156
} catch (err: any) {
157-
expect(err?.issues ?? []).not.toEqual(
158-
expect.arrayContaining([expect.objectContaining({ code: 'currency_mode_to_record' })]),
159-
);
157+
// The finding codes this save raised (a destructive-change issue's
158+
// own field-addressed vocabulary, not an `error.code`).
159+
const findings = ((err?.issues ?? []) as Array<{ code: string }>).map((i) => i.code);
160+
expect(findings).not.toContain('currency_mode_to_record');
160161
}
161162
}
162163
});

0 commit comments

Comments
 (0)