Skip to content

Commit 54eda0e

Browse files
Fix acceptance tests
1 parent 1f8dcce commit 54eda0e

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

packages/features/steps/create-app.steps.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ When(
2929
throw new Error(`Unknown app type: ${appType}`)
3030
}
3131

32-
const {stdout} = await exec(
32+
const {stdout, stderr} = await exec(
3333
'node',
3434
[
3535
executables.createApp,
@@ -44,7 +44,8 @@ When(
4444
],
4545
{env: {...process.env, ...this.temporaryEnv, NODE_OPTIONS: '', FORCE_COLOR: '0'}},
4646
)
47-
const hyphenatedAppName = stdout?.match(/([\w-]+) is ready for you to build!/)?.[1] ?? appName
47+
const output = `${stdout}\n${stderr}`
48+
const hyphenatedAppName = output.match(/([\w-]+) is ready for you to build!/)?.[1] ?? appName
4849
this.appDirectory = path.join(this.temporaryDirectory, hyphenatedAppName)
4950

5051
// Ensure .npmrc exists before appending to it

0 commit comments

Comments
 (0)