Skip to content

Commit

Permalink
apply suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
ijjk committed Jan 14, 2022
1 parent f6d719f commit 0e8a91e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
2 changes: 1 addition & 1 deletion test/lib/next-modes/next-dev.ts
Expand Up @@ -27,7 +27,7 @@ export class NextDevInstance extends NextInstance {
}

await new Promise<void>((resolve) => {
this.childProcess = spawn(startArgs[0], [...startArgs.slice(1)], {
this.childProcess = spawn(startArgs[0], startArgs.slice(1), {
cwd: this.testDir,
stdio: ['ignore', 'pipe', 'pipe'],
shell: false,
Expand Down
12 changes: 2 additions & 10 deletions test/lib/next-modes/next-start.ts
Expand Up @@ -60,11 +60,7 @@ export class NextStartInstance extends NextInstance {

await new Promise<void>((resolve, reject) => {
console.log('running', buildArgs.join(' '))
this.childProcess = spawn(
buildArgs[0],
[...buildArgs.slice(1)],
spawnOpts
)
this.childProcess = spawn(buildArgs[0], buildArgs.slice(1), spawnOpts)
handleStdio()
this.childProcess.on('exit', (code, signal) => {
if (code || signal)
Expand All @@ -89,11 +85,7 @@ export class NextStartInstance extends NextInstance {
console.log('running', startArgs.join(' '))

await new Promise<void>((resolve) => {
this.childProcess = spawn(
startArgs[0],
[...startArgs.slice(1)],
spawnOpts
)
this.childProcess = spawn(startArgs[0], startArgs.slice(1), spawnOpts)
handleStdio()

this.childProcess.on('close', (code, signal) => {
Expand Down

0 comments on commit 0e8a91e

Please sign in to comment.