[ci] yarn format
This commit is contained in:
parent
291f2ef537
commit
d895d3c079
1 changed files with 2 additions and 4 deletions
|
@ -18,8 +18,7 @@ function formatURL(filepath) {
|
||||||
|
|
||||||
// declaring routes individually helps us run many quick tests rather than one giant slow test
|
// 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');
|
const root = path.join(path.dirname(fileURLToPath(import.meta.url)), '../../../docs/src/pages');
|
||||||
let pages = glob('**/*.{astro,md}', { cwd: root, onlyFiles: true })
|
let pages = glob('**/*.{astro,md}', { cwd: root, onlyFiles: true }).map(formatURL);
|
||||||
.map(formatURL);
|
|
||||||
|
|
||||||
SnowpackDev('Pages successfully scanned', () => {
|
SnowpackDev('Pages successfully scanned', () => {
|
||||||
assert.ok(pages.length > 0);
|
assert.ok(pages.length > 0);
|
||||||
|
@ -36,8 +35,7 @@ for (const pathname of pages) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Skipped on Node <v14
|
// Skipped on Node <v14
|
||||||
if (process.env.NODE_VERSION > '14') {
|
if (process.env.NODE_VERSION > '14') {
|
||||||
SnowpackDev.run();
|
SnowpackDev.run();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue