mirror of
https://github.com/withastro/astro.git
synced 2024-12-23 21:53:55 -05:00
[ci] format
This commit is contained in:
parent
1f783e3207
commit
4b899d2257
2 changed files with 4 additions and 7 deletions
|
@ -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) {
|
||||
|
|
|
@ -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
|
||||
});
|
||||
})
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue