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'
3
3
import type { VitestWorker } from './workers/types'
4
4
import { pathToFileURL } from 'node:url'
5
5
import { createStackString , parseStacktrace } from '@vitest/utils/source-map'
6
- import { workerId as poolId } from 'tinypool'
7
6
import { EvaluatedModules } from 'vite/module-runner'
8
7
import { loadEnvironment } from '../integrations/env/loader'
9
8
import { addCleanupListener , cleanup as cleanupWorker } from './cleanup'
@@ -40,6 +39,7 @@ async function execute(method: 'run' | 'collect', ctx: ContextRPC) {
40
39
const cleanups : ( ( ) => void | Promise < void > ) [ ] = [ setupInspect ( ctx ) ]
41
40
42
41
process . env . VITEST_WORKER_ID = String ( ctx . workerId )
42
+ const poolId = process . __tinypool_state__ ?. workerId
43
43
process . env . VITEST_POOL_ID = String ( poolId )
44
44
45
45
let environmentLoader : ModuleRunner | undefined
You can’t perform that action at this time.
0 commit comments