File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
packages/vitest/src/runtime Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ import type { ContextRPC, WorkerGlobalState } from '../types/worker'
33import type { VitestWorker } from './workers/types'
44import { pathToFileURL } from 'node:url'
55import { createStackString , parseStacktrace } from '@vitest/utils/source-map'
6- import { workerId as poolId } from 'tinypool'
76import { EvaluatedModules } from 'vite/module-runner'
87import { loadEnvironment } from '../integrations/env/loader'
98import { addCleanupListener , cleanup as cleanupWorker } from './cleanup'
@@ -40,6 +39,7 @@ async function execute(method: 'run' | 'collect', ctx: ContextRPC) {
4039 const cleanups : ( ( ) => void | Promise < void > ) [ ] = [ setupInspect ( ctx ) ]
4140
4241 process . env . VITEST_WORKER_ID = String ( ctx . workerId )
42+ const poolId = process . __tinypool_state__ ?. workerId
4343 process . env . VITEST_POOL_ID = String ( poolId )
4444
4545 let environmentLoader : ModuleRunner | undefined
You can’t perform that action at this time.
0 commit comments