Skip to content

Commit c1036eb

Browse files
committed
test(cli): the schema-retirement pin's live-generator control reads the current object template
The control copied the agent pin's `import * as Data` assertion, which the object template stopped emitting in 0bd1126. It now asserts the previewed file path and the `@objectstack/spec/data` import source. Claude-Session: https://claude.ai/code/session_01UYBdGBzWSrAMzpW8ah3GbP Co-authored-by: Claude <noreply@anthropic.com>
1 parent 5c7c5be commit c1036eb

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎packages/cli/test/generate-schema-retired.e2e.test.ts‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,10 @@ describe('[#19098] the generators that were not retired still work', () => {
165165
it('`os g object … --dry-run` still previews a typed object file', () => {
166166
expect(survivor.code).toBe(0);
167167
expect(survivor.stdout).toContain('Dry run');
168-
expect(survivor.stdout).toContain("import * as Data from '@objectstack/spec/data'");
168+
expect(survivor.stdout).toContain('src/objects/customer.object.ts');
169+
// The import line, not a spelling of it: the template's binding changed
170+
// once already (a namespace import became `{ ObjectSchema }`), and the
171+
// control asks only that a typed object file is still previewed.
172+
expect(survivor.stdout).toContain("from '@objectstack/spec/data'");
169173
});
170174
});

0 commit comments

Comments
 (0)