0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00

[ci] yarn format

This commit is contained in:
FredKSchott 2021-09-16 20:07:52 +00:00 committed by GitHub Actions
parent 291f2ef537
commit d895d3c079

View file

@ -18,8 +18,7 @@ function formatURL(filepath) {
// declaring routes individually helps us run many quick tests rather than one giant slow test
const root = path.join(path.dirname(fileURLToPath(import.meta.url)), '../../../docs/src/pages');
let pages = glob('**/*.{astro,md}', { cwd: root, onlyFiles: true })
.map(formatURL);
let pages = glob('**/*.{astro,md}', { cwd: root, onlyFiles: true }).map(formatURL);
SnowpackDev('Pages successfully scanned', () => {
assert.ok(pages.length > 0);
@ -36,8 +35,7 @@ for (const pathname of pages) {
});
}
// Skipped on Node <v14
if (process.env.NODE_VERSION > '14') {
SnowpackDev.run();
}
}