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); }, };