Skip to content

Commit a43b54e

Browse files
committed
test(lint): the view door refuses an overlay's binding outside the live universe once
Claude-Session: https://claude.ai/code/session_019oFY6Hi35J7atvgVFnmoaK Co-authored-by: Claude <noreply@anthropic.com>
1 parent 6f8c259 commit a43b54e

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

‎packages/lint/src/runtime-gate.view-writes.test.ts‎

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,15 @@ describe('a flattened list overlay at the runtime publish gate (#9313)', () => {
123123
expect(errors, JSON.stringify(errors)).toEqual([]);
124124
});
125125

126-
it('an overlay bound to an object outside the live universe is not judged', () => {
127-
// Skip ① — the same cross-package posture every walked surface takes.
126+
it('an overlay bound to an object outside the live universe: its field positions are not judged, its binding is', () => {
127+
// Skip ① for the field axes — one typo is one finding, never one per
128+
// position. [#24668] The binding itself is refused once: with no package
129+
// named, the live universe is the whole collection, so an object missing
130+
// from it exists nowhere (`runtime-gate.whole-collection.test.ts`).
128131
const { errors } = gate(overlay({ object: 'pkg_external_case', sort: 'no_such_field' }));
129-
expect(errors, JSON.stringify(errors)).toEqual([]);
132+
expect(errors.map((e) => [e.rule, e.path]), JSON.stringify(errors)).toEqual([
133+
['list-view-object-unknown', 'views[0].object'],
134+
]);
130135
});
131136

132137
// ── [#14107] the rest of the same overlay's field surface ──

0 commit comments

Comments
 (0)