From 601a7e4a5f631348d4290b4ca03807b9b410df91 Mon Sep 17 00:00:00 2001
From: Ev Haus <ev@haus.gg>
Date: Mon, 4 Dec 2023 23:13:12 -0800
Subject: [PATCH] Upgrade to Vitest 1

---
 .github/workflows/benchmark.yaml | 5 +++--
 README.md                        | 4 ++--
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/.github/workflows/benchmark.yaml b/.github/workflows/benchmark.yaml
index 279eb53..04a9062 100644
--- a/.github/workflows/benchmark.yaml
+++ b/.github/workflows/benchmark.yaml
@@ -35,6 +35,7 @@ jobs:
           hyperfine --warmup 1 \
           'yarn workspace jasmine test' \
           'yarn workspace jest test' \
-          'yarn workspace vitest test --experimentalVmThreads' \
-          'yarn workspace vitest test --isolate=false' \
+          'yarn workspace vitest test' \
+          'yarn workspace vitest test --pool=vmThreads' \
+          'yarn workspace vitest test --poolOptions.threads.isolate=false' \
           'yarn workspace bun test'
\ No newline at end of file
diff --git a/README.md b/README.md
index 46acf99..9afed48 100644
--- a/README.md
+++ b/README.md
@@ -18,7 +18,7 @@ yarn
 Then you can run benchmarks via:
 
 ```sh
-hyperfine --warmup 1 'yarn workspace jasmine test' 'yarn workspace jest test' 'yarn workspace vitest test --experimentalVmThreads' 'yarn workspace vitest test --isolate=false' 'yarn workspace bun test'
+hyperfine --warmup 1 'yarn workspace jasmine test' 'yarn workspace jest test' 'yarn workspace vitest test' 'yarn workspace vitest test --pool=vmThreads' 'yarn workspace vitest test --poolOptions.threads.isolate=false' 'yarn workspace bun test'
 ```
 
 > [!NOTE]
@@ -28,7 +28,7 @@ hyperfine --warmup 1 'yarn workspace jasmine test' 'yarn workspace jest test' 'y
 
 - `jasmine`: This is our baseline, using Jasmine and happy-dom.
 - `jest`: Same test suite, but running using Jest.
-- `vitest`: Same test suite, but running using Vitest. NOTE: That benchmarks include vitest with the `isolate` setting both enabled and disabled due to [this issue](https://github.com/vitest-dev/vitest/issues/229#issuecomment-1003235680)
+- `vitest`: Same test suite, but running using Vitest. NOTE: That benchmarks include vitest with the `--poolOptions.threads.isolate` setting both enabled and disabled due to [this issue](https://github.com/vitest-dev/vitest/issues/229#issuecomment-1003235680)
 - `bun`: Same test suite, but running using Bun.
 
 ## Results