From 00ed8c62c77e195932a98f22bebd7da87c12c81d Mon Sep 17 00:00:00 2001 From: Masoud Ghorbani Date: Thu, 2 Jan 2025 17:01:11 +0100 Subject: [PATCH] test: update error handling in command error tests to throw specific error --- src/utils/command.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/command.test.ts b/src/utils/command.test.ts index 5441e65..7ec7736 100644 --- a/src/utils/command.test.ts +++ b/src/utils/command.test.ts @@ -18,7 +18,7 @@ describe('Command: Handle errors', () => { it('should throw error if CI env is true', async () => { process.env.CI = 'true' const error = new Error() - expect(() => handlerCommandError(error)).to.throw() + expect(() => handlerCommandError(error)).to.throw(error) process.env.CI = undefined }) })