Skip to content

Commit 4e6c7a6

Browse files
committed
chore: test error handling
1 parent 4960c9f commit 4e6c7a6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/commands/deploy/spec/deploy.spec.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,9 @@ describe('deploy', () => {
250250
}
251251
})
252252

253-
await deploy(target, true)
253+
await deploy(target, true).catch(err => {
254+
// error is expected, nothing to do
255+
})
254256

255257
expect(process.logger.error).toHaveBeenCalledWith(
256258
`Unable to process script located at ${path.join(

0 commit comments

Comments
 (0)