diff options
author | 2022-04-21 16:36:48 -0400 | |
---|---|---|
committer | 2022-04-21 16:36:48 -0400 | |
commit | 7c49194ca2161a09cc304ba8327533f8176ae0da (patch) | |
tree | 7664bf80f0963b73b93e44036bae073b35154106 /packages/create-astro/test/helpers.js | |
parent | 908fffb5ec2de4efb55d03a69381e3aa376e4c42 (diff) | |
download | astro-7c49194ca2161a09cc304ba8327533f8176ae0da.tar.gz astro-7c49194ca2161a09cc304ba8327533f8176ae0da.tar.zst astro-7c49194ca2161a09cc304ba8327533f8176ae0da.zip |
Feat: [create astro] add directory prompt (#3168)
* wip: add prompt for directory with validation
* feat: wire up dir response to cwd
* feat: improve error handling on non-empty dirs
* fix: update test helpers to execaSync
* chore: add .skipped to old tests for clarity
* deps: add mocha and chai to create-astro
* feat: add directory step test with fixture
* feat: update turbo to run create-astro tests again 🥳
* chore: changeset
Diffstat (limited to 'packages/create-astro/test/helpers.js')
-rw-r--r-- | packages/create-astro/test/helpers.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/create-astro/test/helpers.js b/packages/create-astro/test/helpers.js index 6e4445045..4f0b6ec3e 100644 --- a/packages/create-astro/test/helpers.js +++ b/packages/create-astro/test/helpers.js @@ -1,8 +1,8 @@ -import { execa } from 'execa'; +import { execaSync } from 'execa'; import path from 'path'; import { fileURLToPath, pathToFileURL } from 'url'; -const GITHUB_SHA = process.env.GITHUB_SHA || execa.sync('git', ['rev-parse', 'HEAD']).stdout; // process.env.GITHUB_SHA will be set in CI; if testing locally execa() will gather this +const GITHUB_SHA = process.env.GITHUB_SHA || execaSync('git', ['rev-parse', 'HEAD']).stdout; // process.env.GITHUB_SHA will be set in CI; if testing locally execa() will gather this const FIXTURES_DIR = path.join(fileURLToPath(path.dirname(import.meta.url)), 'fixtures'); const FIXTURES_URL = pathToFileURL(FIXTURES_DIR + '/'); |