diff options
Diffstat (limited to 'packages/create-astro/test')
-rw-r--r-- | packages/create-astro/test/external.test.js | 10 | ||||
-rw-r--r-- | packages/create-astro/test/helpers.js | 6 |
2 files changed, 5 insertions, 11 deletions
diff --git a/packages/create-astro/test/external.test.js b/packages/create-astro/test/external.test.js index 9fac8c202..be4404e53 100644 --- a/packages/create-astro/test/external.test.js +++ b/packages/create-astro/test/external.test.js @@ -10,12 +10,10 @@ async function run(outdir, template) { }); } -const testCases = [ - ['shopify', 'cassidoo/shopify-react-astro'] -]; +const testCases = [['shopify', 'cassidoo/shopify-react-astro']]; async function tests() { - for(let [dir, tmpl] of testCases) { + for (let [dir, tmpl] of testCases) { await run(dir, tmpl); const outPath = new URL('' + dir, FIXTURES_URL); @@ -23,7 +21,7 @@ async function tests() { } } -tests().catch(err => { +tests().catch((err) => { console.error(err); process.exit(1); -});
\ No newline at end of file +}); diff --git a/packages/create-astro/test/helpers.js b/packages/create-astro/test/helpers.js index 295f9c650..ca1f82362 100644 --- a/packages/create-astro/test/helpers.js +++ b/packages/create-astro/test/helpers.js @@ -6,8 +6,4 @@ const GITHUB_SHA = process.env.GITHUB_SHA || execa.sync('git', ['rev-parse', 'HE const FIXTURES_DIR = path.join(fileURLToPath(path.dirname(import.meta.url)), 'fixtures'); const FIXTURES_URL = pathToFileURL(FIXTURES_DIR + '/'); -export { - GITHUB_SHA, - FIXTURES_DIR, - FIXTURES_URL -};
\ No newline at end of file +export { GITHUB_SHA, FIXTURES_DIR, FIXTURES_URL }; |