diff --git a/packages/astro/src/content/types-generator.ts b/packages/astro/src/content/types-generator.ts index ab0e254add..5f9563a125 100644 --- a/packages/astro/src/content/types-generator.ts +++ b/packages/astro/src/content/types-generator.ts @@ -235,10 +235,7 @@ export async function createContentTypesGenerator({ // Errors still crash dev from *starting*. } }; - debounceTimeout = setTimeout( - runEventsSafe, - 50 /* debounce to batch chokidar events */ - ); + debounceTimeout = setTimeout(runEventsSafe, 50 /* debounce to batch chokidar events */); } async function runEvents(opts?: EventOpts) { diff --git a/packages/astro/test/units/content-collections/frontmatter.test.js b/packages/astro/test/units/content-collections/frontmatter.test.js index d4a9f1ecee..c4c9826fdd 100644 --- a/packages/astro/test/units/content-collections/frontmatter.test.js +++ b/packages/astro/test/units/content-collections/frontmatter.test.js @@ -13,7 +13,7 @@ function getTypesDts() { const typesdtsURL = new URL('../../../src/content/template/types.d.ts', import.meta.url); const relpath = slash(path.relative(fileURLToPath(root), fileURLToPath(typesdtsURL))); return { - [relpath]: nodeFS.readFileSync(typesdtsURL, 'utf-8') + [relpath]: nodeFS.readFileSync(typesdtsURL, 'utf-8'), }; } @@ -65,8 +65,8 @@ describe('frontmatter', () => { ` ); triggerFSEvent(container, fs, '/src/content/posts/blog.md', 'change'); - await new Promise(resolve => setTimeout(resolve, 100)); + await new Promise((resolve) => setTimeout(resolve, 100)); // Note, if we got here, it didn't crash }); - }) + }); });