mirror of
https://github.com/withastro/astro.git
synced 2025-01-20 22:12:38 -05:00
test(create-astro): correct wrong argument (#5812)
This commit is contained in:
parent
c55fbcb8ed
commit
21a55b3276
1 changed files with 2 additions and 2 deletions
|
@ -5,7 +5,7 @@ import { fileURLToPath } from 'url';
|
||||||
|
|
||||||
const __filename = fileURLToPath(import.meta.url);
|
const __filename = fileURLToPath(import.meta.url);
|
||||||
export const testDir = dirname(__filename);
|
export const testDir = dirname(__filename);
|
||||||
export const timeout = 5000;
|
export const timeout = 25000;
|
||||||
|
|
||||||
const timeoutError = function (details) {
|
const timeoutError = function (details) {
|
||||||
let errorMsg = 'Timed out waiting for create-astro to respond with expected output.';
|
let errorMsg = 'Timed out waiting for create-astro to respond with expected output.';
|
||||||
|
@ -42,7 +42,7 @@ export const PROMPT_MESSAGES = {
|
||||||
};
|
};
|
||||||
|
|
||||||
export function setup(args = []) {
|
export function setup(args = []) {
|
||||||
const { stdout, stdin } = execa('../create-astro.mjs', [...args, '--skip-houston', '--dryrun'], {
|
const { stdout, stdin } = execa('../create-astro.mjs', [...args, '--skip-houston', '--dry-run'], {
|
||||||
cwd: testDir,
|
cwd: testDir,
|
||||||
});
|
});
|
||||||
return {
|
return {
|
||||||
|
|
Loading…
Add table
Reference in a new issue