From 7965959dc1055eb0f7600fa8dd2cfe89e5dfb60c Mon Sep 17 00:00:00 2001 From: alvrs Date: Wed, 30 Aug 2023 14:53:06 +0200 Subject: [PATCH] fix(cli): make mud test exit with code 1 on test error --- packages/cli/src/commands/test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/cli/src/commands/test.ts b/packages/cli/src/commands/test.ts index 17dfbcb74e..938c685f8a 100644 --- a/packages/cli/src/commands/test.ts +++ b/packages/cli/src/commands/test.ts @@ -59,10 +59,11 @@ const commandModule: CommandModule = { console.log(testResult); } catch (e) { console.error(e); + rmSync(WORLD_ADDRESS_FILE); + process.exit(1); } rmSync(WORLD_ADDRESS_FILE); - process.exit(0); }, };