diff options
author | 2022-04-29 11:45:43 -0400 | |
---|---|---|
committer | 2022-04-29 11:45:43 -0400 | |
commit | c8f5fa35c4c3cf08df45e6bd6cb78960782ae08b (patch) | |
tree | 44198a8ff767458e701de8089f5925d1f67f84ca /packages/create-astro/test/utils.js | |
parent | 6cd9ef577ecddcde655426c5f1bee34307eca8b8 (diff) | |
download | astro-c8f5fa35c4c3cf08df45e6bd6cb78960782ae08b.tar.gz astro-c8f5fa35c4c3cf08df45e6bd6cb78960782ae08b.tar.zst astro-c8f5fa35c4c3cf08df45e6bd6cb78960782ae08b.zip |
Feat: [create astro] git step (#3227)
* feat: add git init step
* fix: update unit tests
* feat: simplify next steps for copy pasteability
* docs: add clarifying comment on test stdin spoofing
* docs: remove "empty" from git repo message
* fix: update git step text for test
* fix: remove redundant --dryrun flag
* refactor: simplify next steps with &&
* chore: changeset
Diffstat (limited to 'packages/create-astro/test/utils.js')
-rw-r--r-- | packages/create-astro/test/utils.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/create-astro/test/utils.js b/packages/create-astro/test/utils.js index 70ad32210..964ae6a20 100644 --- a/packages/create-astro/test/utils.js +++ b/packages/create-astro/test/utils.js @@ -29,10 +29,11 @@ export const PROMPT_MESSAGES = { install: (pkgManager) => `Would you like us to run "${pkgManager} install?"`, astroAdd: (astroAddCommand = 'npx astro@latest add --yes') => `Run "${astroAddCommand}?" This lets you optionally add component frameworks (ex. React), CSS frameworks (ex. Tailwind), and more.`, + git: 'Initialize a git repository?', }; export function setup(args = []) { - const { stdout, stdin } = execa('../create-astro.mjs', args, { cwd: testDir }); + const { stdout, stdin } = execa('../create-astro.mjs', [...args, '--dryrun'], { cwd: testDir }); return { stdin, stdout, |