[READ-ONLY] Mirror of https://github.com/vitest-dev/vitest. Next generation testing framework powered by Vite. vitest.dev
test testing-tools vite
12

Configure Feed

Select the types of activity you want to include in your feed.

feat: include "vitest" in the process name (#4191)

authored by

Vladimir and committed by
GitHub
(Sep 28, 2023, 9:12 AM +0200) 404c1f49 dd982796

+10
+5
packages/vitest/src/node/cli.ts
··· 168 168 169 169 async function start(mode: VitestRunMode, cliFilters: string[], options: CliOptions): Promise<Vitest | undefined> { 170 170 try { 171 + process.title = 'node (vitest)' 172 + } 173 + catch {} 174 + 175 + try { 171 176 const ctx = await startVitest(mode, cliFilters.map(normalize), normalizeCliOptions(options)) 172 177 if (!ctx?.shouldKeepServer()) 173 178 await ctx?.exit()
+5
packages/vitest/src/runtime/child.ts
··· 19 19 process.env.VITEST_WORKER_ID = String(workerId) 20 20 process.env.VITEST_POOL_ID = String(poolId) 21 21 22 + try { 23 + process.title = `node (vitest ${poolId})` 24 + } 25 + catch {} 26 + 22 27 let setCancel = (_reason: CancelReason) => {} 23 28 const onCancel = new Promise<CancelReason>((resolve) => { 24 29 setCancel = resolve