From be64cc8d0c3658330d610568dde21654b340ed8b Mon Sep 17 00:00:00 2001
From: Vladimir Sheremet <sleuths.slews0s@icloud.com>
Date: Wed, 27 Sep 2023 14:58:48 +0200
Subject: [PATCH] feat: include "vitest" in activity monitor

---
 packages/vitest/src/node/cli.ts | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/packages/vitest/src/node/cli.ts b/packages/vitest/src/node/cli.ts
index 287ec9a7d950..758f93b5989f 100644
--- a/packages/vitest/src/node/cli.ts
+++ b/packages/vitest/src/node/cli.ts
@@ -167,6 +167,8 @@ function normalizeCliOptions(argv: CliOptions): CliOptions {
 }
 
 async function start(mode: VitestRunMode, cliFilters: string[], options: CliOptions): Promise<Vitest | undefined> {
+  process.title = 'node (vitest)'
+
   try {
     const ctx = await startVitest(mode, cliFilters.map(normalize), normalizeCliOptions(options))
     if (!ctx?.shouldKeepServer())