diff options
author | 2022-06-27 14:15:51 -0700 | |
---|---|---|
committer | 2022-06-27 14:15:51 -0700 | |
commit | 4d6d8644e623522ca6c19dbb2078865b17044c38 (patch) | |
tree | c0d0f032785dc5b5ba1386612281b5b8a6e52715 /packages/create-astro/test/install-step.test.js | |
parent | bd4dac0e1a8598045f10c42faf08abff96ed6766 (diff) | |
download | astro-4d6d8644e623522ca6c19dbb2078865b17044c38.tar.gz astro-4d6d8644e623522ca6c19dbb2078865b17044c38.tar.zst astro-4d6d8644e623522ca6c19dbb2078865b17044c38.zip |
SImplify "astro add" by removing confusing multi-select (#3715)
* wip
* update create-astro for new astro add
* update copy
* update git prompt
* Update packages/astro/src/core/logger/node.ts
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
* Update packages/create-astro/test/install-step.test.js
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
* update git prompt
* update test
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
Diffstat (limited to 'packages/create-astro/test/install-step.test.js')
-rw-r--r-- | packages/create-astro/test/install-step.test.js | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/packages/create-astro/test/install-step.test.js b/packages/create-astro/test/install-step.test.js index d8219b520..3f1dea4a9 100644 --- a/packages/create-astro/test/install-step.test.js +++ b/packages/create-astro/test/install-step.test.js @@ -44,7 +44,6 @@ describe('[create-astro] install', function () { return promiseWithTimeout((resolve) => { const seen = new Set(); const installPrompt = PROMPT_MESSAGES.install(FAKE_PACKAGE_MANAGER); - const astroAddPrompt = PROMPT_MESSAGES.astroAdd(); stdout.on('data', (chunk) => { if (!seen.has(PROMPT_MESSAGES.template) && chunk.includes(PROMPT_MESSAGES.template)) { seen.add(PROMPT_MESSAGES.template); @@ -56,10 +55,6 @@ describe('[create-astro] install', function () { // respond with "no, then enter key" stdin.write('n\x0D'); } - if (!seen.has(astroAddPrompt) && chunk.includes(astroAddPrompt)) { - seen.add(astroAddPrompt); - stdin.write('n\x0D'); - } if (!seen.has(PROMPT_MESSAGES.git) && chunk.includes(PROMPT_MESSAGES.git)) { seen.add(PROMPT_MESSAGES.git); stdin.write('\x0D'); |