Skip to content

Commit

Permalink
More fixes to broken CLI tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Castro, Mario committed Dec 5, 2024
1 parent 123e787 commit a9509fa
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import * as path from 'path'
import * as execa from 'execa'
import { command } from 'execa'
import {
createFolder,
Expand Down Expand Up @@ -114,10 +115,7 @@ describe('Project', () => {
flags: Array<string> = [],
promptAnswers?: PromptAnswers
): Promise<{ stdout: string; stderr: string }> => {
const cliProcess = command(`${cliPath} new:project ${projectName} ${flags.join(' ')}`, {
cwd: SANDBOX_INTEGRATION_DIR,
shell: true,
})
const cliProcess = execa(cliPath, ['new:project', projectName, ...flags], { cwd: SANDBOX_INTEGRATION_DIR })

if (promptAnswers) {
await handlePrompt(cliProcess, promptAnswers)
Expand Down

0 comments on commit a9509fa

Please sign in to comment.