Skip to content

Commit

Permalink
revert accident change
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi committed May 19, 2023
1 parent e464156 commit 3be1592
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/lib/next-modes/next-start.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ export class NextStartInstance extends NextInstance {
}

public async start() {
if (this.childProcess) {
throw new Error('next already started')
}
this._cliOutput = ''
this.spawnOpts = {
cwd: this.testDir,
Expand All @@ -51,9 +54,6 @@ export class NextStartInstance extends NextInstance {
},
}

if (this.childProcess) {
throw new Error('next already started')
}
let buildArgs = ['yarn', 'next', 'build']
let startArgs = ['yarn', 'next', 'start']

Expand Down

0 comments on commit 3be1592

Please sign in to comment.