Skip to content

Commit

Permalink
revert pool options
Browse files Browse the repository at this point in the history
  • Loading branch information
timbrinded committed Jul 8, 2024
1 parent dca7376 commit fa4666a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
5 changes: 5 additions & 0 deletions .changeset/hungry-coats-cheat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@moonwall/cli": patch
---

Revert default pooloptions
14 changes: 7 additions & 7 deletions packages/cli/src/cmds/runTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,11 +193,11 @@ class VitestOptionsBuilder {
this.options.fileParallelism = false;
this.options.pool = "forks";
this.options.poolOptions = {
forks: {
threads: {
isolate: true,
minForks: 1,
maxForks: 3,
singleFork: false,
minThreads: 1,
maxThreads: 3,
singleThread: false,
},
};

Expand All @@ -207,9 +207,9 @@ class VitestOptionsBuilder {

if (typeof threads === "number" && process.env.MOON_RECYCLE !== "true") {
this.options.fileParallelism = true;
if (this.options.poolOptions?.forks) {
this.options.poolOptions.forks.maxForks = threads;
this.options.poolOptions.forks.singleFork = false;
if (this.options.poolOptions?.threads) {
this.options.poolOptions.threads.maxThreads = threads;
this.options.poolOptions.threads.singleThread = false;
}
}

Expand Down

0 comments on commit fa4666a

Please sign in to comment.