Skip to content

Commit

Permalink
fix(vm): remove sequencer usage from createVmThreadsPool function (#4638
Browse files Browse the repository at this point in the history
)
  • Loading branch information
mhogeveen committed Dec 2, 2023
1 parent ceca93d commit 54d52d4
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions packages/vitest/src/node/pools/vm-threads.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,6 @@ export function createVmThreadsPool(ctx: Vitest, { execArgv, env, vmPath }: Pool
}
}

const Sequencer = ctx.config.sequence.sequencer
const sequencer = new Sequencer(ctx)

return async (specs, invalidates) => {
const configs = new Map<WorkspaceProject, ResolvedConfig>()
const getConfig = (project: WorkspaceProject): ResolvedConfig => {
Expand All @@ -134,13 +131,6 @@ export function createVmThreadsPool(ctx: Vitest, { execArgv, env, vmPath }: Pool
return config
}

const { shard } = ctx.config

if (shard)
specs = await sequencer.shard(specs)

specs = await sequencer.sort(specs)

const filesByEnv = await groupFilesByEnv(specs)
const promises = Object.values(filesByEnv).flat()
const results = await Promise.allSettled(promises
Expand Down

0 comments on commit 54d52d4

Please sign in to comment.