8000 test: clear deploy logs to avoid printing them twice · opennextjs/opennextjs-netlify@f68cb4b · GitHub
[go: up one dir, main page]

Skip to content

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f68cb4b

Browse files
committed
test: clear deploy logs to avoid printing them twice
1 parent e35aacc commit f68cb4b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/netlify-deploy.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,8 @@ export class NextDeployInstance extends NextInstance {
154154
const deployRes = await deployResPromise
155155

156156
if (deployRes.exitCode !== 0) {
157+
// clear deploy output to avoid printing it again in destroy()
158+
this._deployOutput = ''
157159
throw new Error(
158160
`Failed to deploy project (${deployRes.exitCode}) ${deployRes.stdout} ${deployRes.stderr} `,
159161
)

0 commit comments

Comments
 (0)
0