diff --git a/packages/astro/src/content/runtime.ts b/packages/astro/src/content/runtime.ts index 3309bc642..eeaa60e6c 100644 --- a/packages/astro/src/content/runtime.ts +++ b/packages/astro/src/content/runtime.ts @@ -1,5 +1,6 @@ import type { MarkdownHeading } from '@astrojs/markdown-remark'; import { ZodIssueCode, string as zodString } from 'zod'; +import type { AstroIntegration } from '../@types/astro.js'; import { AstroError, AstroErrorData } from '../core/errors/index.js'; import { prependForwardSlash } from '../core/path.js'; import { @@ -13,7 +14,6 @@ import { type AstroComponentFactory, } from '../runtime/server/index.js'; import type { ContentLookupMap } from './utils.js'; -import type { AstroIntegration } from '../@types/astro.js'; type LazyImport = () => Promise; type GlobResult = Record; @@ -56,7 +56,7 @@ export function createGetCollection({ } else if (collection in dataCollectionToEntryMap) { type = 'data'; } else { - return warnOfEmptyCollection(collection) + return warnOfEmptyCollection(collection); } const lazyImports = Object.values( type === 'content' diff --git a/packages/astro/test/content-collections.test.js b/packages/astro/test/content-collections.test.js index bc0e90d2a..082a7c0eb 100644 --- a/packages/astro/test/content-collections.test.js +++ b/packages/astro/test/content-collections.test.js @@ -247,7 +247,7 @@ describe('Content Collections', () => { describe('With empty collections directory', () => { it('Handles the empty directory correclty', async () => { const fixture = await loadFixture({ - root: './fixtures/content-collections-empty-dir/' + root: './fixtures/content-collections-empty-dir/', }); let error; try { @@ -257,8 +257,8 @@ describe('Content Collections', () => { } expect(error).to.be.undefined; // TODO: try to render a page - }) - }) + }); + }); describe('SSR integration', () => { let app;