mirror of
https://github.com/withastro/astro.git
synced 2024-12-23 21:53:55 -05:00
[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
|
||||
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,7 +35,6 @@ for (const pathname of pages) {
|
|||
});
|
||||
}
|
||||
|
||||
|
||||
// Skipped on Node <v14
|
||||
if (process.env.NODE_VERSION > '14') {
|
||||
SnowpackDev.run();
|
||||
|
|
Loading…
Reference in a new issue