Skip to content

Controll the file parellelism per workspace (in v3) #7416

Answered by hi-ogawa
kev0960 asked this question in Q&A
Discussion options

You must be logged in to vote

Did you miss pool: "threads"?

// vitest.workspace.ts
  test: {
    name: 'db-e2e',
    pool: "threads",
    poolOptions: { threads: { singleThread: true } },
    ...
  }

I think this could technically work, but this is kind of a workaround to control parallelism per workspace.

And you might need to move poolOptions to root:

// vitest.config.ts
  test: {
    poolOptions: { threads: { singleThread: true } },

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@AriPerkkio
Comment options

@kev0960
Comment options

Answer selected by kev0960
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants