summaryrefslogtreecommitdiff
path: root/scripts/smoke/index.js
diff options
context:
space:
mode:
authorGravatar Jonathan Neal <jonathantneal@hotmail.com> 2021-12-22 16:11:05 -0500
committerGravatar GitHub <noreply@github.com> 2021-12-22 16:11:05 -0500
commit6ddd7678ffb6598ae6e263706813cb5e94535f02 (patch)
treed4b45f7590b59c3574bd6593b17d8066f71007c6 /scripts/smoke/index.js
parent305ce4182fbe89abcfb88008ddce178bd8863b6a (diff)
downloadastro-6ddd7678ffb6598ae6e263706813cb5e94535f02.tar.gz
astro-6ddd7678ffb6598ae6e263706813cb5e94535f02.tar.zst
astro-6ddd7678ffb6598ae6e263706813cb5e94535f02.zip
Use accessible indentation (#2253)
Diffstat (limited to 'scripts/smoke/index.js')
-rw-r--r--scripts/smoke/index.js36
1 files changed, 18 insertions, 18 deletions
diff --git a/scripts/smoke/index.js b/scripts/smoke/index.js
index e1e296a61..d5412adc0 100644
--- a/scripts/smoke/index.js
+++ b/scripts/smoke/index.js
@@ -7,25 +7,25 @@ import { fileURLToPath } from 'url';
// and update our CI to run through Turbo.
export default async function run() {
- const examplesUrl = new URL('../../examples/', import.meta.url);
- const examplesToTest = fs
- .readdirSync(examplesUrl)
- .map((filename) => new URL(filename, examplesUrl))
- .filter((fileUrl) => fs.statSync(fileUrl).isDirectory());
- const allProjectsToTest = [...examplesToTest, new URL('../../www', import.meta.url), new URL('../../docs', import.meta.url)];
+ const examplesUrl = new URL('../../examples/', import.meta.url);
+ const examplesToTest = fs
+ .readdirSync(examplesUrl)
+ .map((filename) => new URL(filename, examplesUrl))
+ .filter((fileUrl) => fs.statSync(fileUrl).isDirectory());
+ const allProjectsToTest = [...examplesToTest, new URL('../../www', import.meta.url), new URL('../../docs', import.meta.url)];
- console.log('');
- for (const projectToTest of allProjectsToTest) {
- const filePath = fileURLToPath(projectToTest);
- console.log(' 🤖 Testing', filePath, '\n');
- try {
- await execa('yarn', ['build'], { cwd: fileURLToPath(projectToTest), stdout: 'inherit', stderr: 'inherit' });
- } catch (err) {
- console.log(err);
- process.exit(1);
- }
- console.log('\n 🤖 Test complete.');
- }
+ console.log('');
+ for (const projectToTest of allProjectsToTest) {
+ const filePath = fileURLToPath(projectToTest);
+ console.log(' 🤖 Testing', filePath, '\n');
+ try {
+ await execa('yarn', ['build'], { cwd: fileURLToPath(projectToTest), stdout: 'inherit', stderr: 'inherit' });
+ } catch (err) {
+ console.log(err);
+ process.exit(1);
+ }
+ console.log('\n 🤖 Test complete.');
+ }
}
run();