Skip to content

Commit 8171d85

Browse files
committed
test(lint): name each node-config census row by its type and key
Claude-Session: https://claude.ai/code/session_01QcAS3qiYYZNezaxZxaUdMV Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 7f3b9b6 commit 8171d85

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

‎packages/lint/src/validate-expressions.test.ts‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4498,12 +4498,12 @@ describe('node config an executor requires (#20316)', () => {
44984498
validateStackExpressions(stack as never).filter((i) => (i.severity ?? 'error') === 'error');
44994499

45004500
it.each([
4501-
['loop', { collection: '{rows}', body: { nodes: [{ id: 'b', type: 'assignment' }], edges: [] } }, 'collection'],
4502-
['map', { collection: '{rows}', flowName: 'child_flow' }, 'collection'],
4503-
['get_record', { objectName: 'account' }, 'objectName'],
4504-
['http', { url: 'https://example.com/hook' }, 'url'],
4505-
['subflow', { flowName: 'child_flow' }, 'flowName'],
4506-
] as Array<[string, Record<string, unknown>, string]>)('%s without `%s` is refused; with it, nothing is', (type, whole, key) => {
4501+
{ type: 'loop', whole: { collection: '{rows}', body: { nodes: [{ id: 'b', type: 'assignment' }], edges: [] } }, key: 'collection' },
4502+
{ type: 'map', whole: { collection: '{rows}', flowName: 'child_flow' }, key: 'collection' },
4503+
{ type: 'get_record', whole: { objectName: 'account' }, key: 'objectName' },
4504+
{ type: 'http', whole: { url: 'https://example.com/hook' }, key: 'url' },
4505+
{ type: 'subflow', whole: { flowName: 'child_flow' }, key: 'flowName' },
4506+
] as Array<{ type: string; whole: Record<string, unknown>; key: string }>)('$type without `$key` is refused; with it, nothing is', ({ type, whole, key }) => {
45074507
expect(errorsOf(stackWith({ type, config: whole }))).toHaveLength(0);
45084508
const authored = { ...whole };
45094509
delete authored[key];

0 commit comments

Comments
 (0)