summaryrefslogtreecommitdiff
path: root/packages/create-astro/test/external.test.js
diff options
context:
space:
mode:
Diffstat (limited to 'packages/create-astro/test/external.test.js')
-rw-r--r--packages/create-astro/test/external.test.js22
1 files changed, 11 insertions, 11 deletions
diff --git a/packages/create-astro/test/external.test.js b/packages/create-astro/test/external.test.js
index 87c50338a..277e498e0 100644
--- a/packages/create-astro/test/external.test.js
+++ b/packages/create-astro/test/external.test.js
@@ -4,24 +4,24 @@ import { FIXTURES_URL } from './helpers.js';
import { existsSync } from 'fs';
async function run(outdir, template) {
- //--template cassidoo/shopify-react-astro
- await execa('../../create-astro.mjs', [outdir, '--template', template, '--force-overwrite'], {
- cwd: FIXTURES_URL.pathname,
- });
+ //--template cassidoo/shopify-react-astro
+ await execa('../../create-astro.mjs', [outdir, '--template', template, '--force-overwrite'], {
+ cwd: FIXTURES_URL.pathname,
+ });
}
const testCases = [['shopify', 'cassidoo/shopify-react-astro']];
async function tests() {
- for (let [dir, tmpl] of testCases) {
- await run(dir, tmpl);
+ for (let [dir, tmpl] of testCases) {
+ await run(dir, tmpl);
- const outPath = new URL('' + dir, FIXTURES_URL);
- assert.ok(existsSync(outPath));
- }
+ const outPath = new URL('' + dir, FIXTURES_URL);
+ assert.ok(existsSync(outPath));
+ }
}
tests().catch((err) => {
- console.error(err);
- process.exit(1);
+ console.error(err);
+ process.exit(1);
});