diff options
Diffstat (limited to 'packages/create-astro/test')
-rw-r--r-- | packages/create-astro/test/typescript-step.test.js.skipped (renamed from packages/create-astro/test/typescript-step.test.js) | 3 | ||||
-rw-r--r-- | packages/create-astro/test/utils.js | 6 |
2 files changed, 5 insertions, 4 deletions
diff --git a/packages/create-astro/test/typescript-step.test.js b/packages/create-astro/test/typescript-step.test.js.skipped index 57371fec1..d9281b21d 100644 --- a/packages/create-astro/test/typescript-step.test.js +++ b/packages/create-astro/test/typescript-step.test.js.skipped @@ -98,7 +98,8 @@ describe('[create-astro] select typescript', function () { stdout.on('data', (chunk) => { onStdout(chunk); if (!wrote && chunk.includes(PROMPT_MESSAGES.typescript)) { - stdin.write('\x1B\x5B\x42\x0D'); + // Enter (strict is default) + stdin.write('\n'); wrote = true; } if (chunk.includes(PROMPT_MESSAGES.typescriptSucceed)) { diff --git a/packages/create-astro/test/utils.js b/packages/create-astro/test/utils.js index 0a83a4f59..dc161163b 100644 --- a/packages/create-astro/test/utils.js +++ b/packages/create-astro/test/utils.js @@ -36,13 +36,13 @@ export function promiseWithTimeout(testFn) { export const PROMPT_MESSAGES = { directory: 'Where would you like to create your new project?', - template: 'Which template would you like to use?', + template: 'How would you like to setup your new project?', typescript: 'How would you like to setup TypeScript?', - typescriptSucceed: 'Next steps', + typescriptSucceed: 'next', }; export function setup(args = []) { - const { stdout, stdin } = execa('../create-astro.mjs', [...args, '--dryrun'], { cwd: testDir }); + const { stdout, stdin } = execa('../create-astro.mjs', [...args, '--skip-houston', '--dryrun'], { cwd: testDir }); return { stdin, stdout, |