Skip to content

Commit

Permalink
chore(data-migration): Fix test exit code (#9795)
Browse files Browse the repository at this point in the history
Co-authored-by: Tobbe Lundberg <tobbe@tlundberg.com>
  • Loading branch information
Josh-Walker-GM and Tobbe committed Jan 3, 2024
1 parent c77ebee commit 404c22f
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,10 @@ describe('upHandler', () => {
distPath: getPaths().api.dist,
})

// The handler will error and set the exit code to 1, we must revert that
// or test suite itself will fail.
process.exitCode = 0

expect(console.info.mock.calls[0][0]).toMatch(
'1 data migration(s) completed successfully.'
)
Expand Down

0 comments on commit 404c22f

Please sign in to comment.