diff options
Diffstat (limited to 'packages/astro/test/astro-sync.test.js')
-rw-r--r-- | packages/astro/test/astro-sync.test.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/packages/astro/test/astro-sync.test.js b/packages/astro/test/astro-sync.test.js index c8a2de49c..d6b343616 100644 --- a/packages/astro/test/astro-sync.test.js +++ b/packages/astro/test/astro-sync.test.js @@ -142,20 +142,24 @@ describe('astro sync', () => { '.astro/content.d.ts', `"blog": Record<string, { id: string; + render(): Render[".md"]; slug: string; body: string; collection: "blog"; data: InferEntrySchema<"blog">; - render(): Render[".md"]; -}>;`, + rendered?: RenderedContent; + filePath?: string;`, 'Types file does not include empty collection type', ); fixture.thenFileContentShouldInclude( '.astro/content.d.ts', `"blogMeta": Record<string, { id: string; + body?: string; collection: "blogMeta"; data: InferEntrySchema<"blogMeta">; + rendered?: RenderedContent; + filePath?: string; }>;`, 'Types file does not include empty collection type', ); |