From 256698e3d61aeb103ee5332d58b72296275e94b2 Mon Sep 17 00:00:00 2001 From: James Ross Date: Thu, 28 Nov 2024 17:17:32 +0000 Subject: [PATCH 1/5] fix: update supported vitest version --- .../get-started/migrate-from-miniflare-2.mdx | 2 +- .../vitest-integration/get-started/write-your-first-test.mdx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/content/docs/workers/testing/vitest-integration/get-started/migrate-from-miniflare-2.mdx b/src/content/docs/workers/testing/vitest-integration/get-started/migrate-from-miniflare-2.mdx index 6d001019f531121..8b5768ac8ccb3b7 100644 --- a/src/content/docs/workers/testing/vitest-integration/get-started/migrate-from-miniflare-2.mdx +++ b/src/content/docs/workers/testing/vitest-integration/get-started/migrate-from-miniflare-2.mdx @@ -30,7 +30,7 @@ First, you will need to uninstall the old environment and install the new pool. ```sh npm uninstall vitest-environment-miniflare -npm install --save-dev --save-exact vitest@2.0.5 +npm install --save-dev --save-exact vitest@2.1.6 npm install --save-dev @cloudflare/vitest-pool-workers ``` diff --git a/src/content/docs/workers/testing/vitest-integration/get-started/write-your-first-test.mdx b/src/content/docs/workers/testing/vitest-integration/get-started/write-your-first-test.mdx index 0c5f2b8360c172f..ac24fa967575b32 100644 --- a/src/content/docs/workers/testing/vitest-integration/get-started/write-your-first-test.mdx +++ b/src/content/docs/workers/testing/vitest-integration/get-started/write-your-first-test.mdx @@ -24,7 +24,7 @@ This guide will instruct you through installing and setting up the `@cloudflare/ Open a terminal window and make sure you are in your project's root directory. Once you have confirmed that, run: ```sh -npm install vitest@2.0.5 --save-dev --save-exact +npm install vitest@2.1.6 --save-dev --save-exact npm install @cloudflare/vitest-pool-workers --save-dev ``` @@ -32,7 +32,7 @@ The above commands will add the packages to your `package.json` file and install :::note -Currently, the `@cloudflare/vitest-pool-workers` package _only_ works with Vitest 2.0.5. +Currently, the `@cloudflare/vitest-pool-workers` package _only_ works with Vitest 2.0.x - 2.1.x. ::: From cb3ddb86788e6b1586d8b483c76dc677d0dc4b71 Mon Sep 17 00:00:00 2001 From: James Ross Date: Sun, 1 Dec 2024 18:43:46 +0000 Subject: [PATCH 2/5] chore: pin vitest to 2.1.5 This works around https://github.com/vitest-dev/vitest/issues/6992 being an issue with Vite 6 --- .../vitest-integration/get-started/migrate-from-miniflare-2.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/docs/workers/testing/vitest-integration/get-started/migrate-from-miniflare-2.mdx b/src/content/docs/workers/testing/vitest-integration/get-started/migrate-from-miniflare-2.mdx index 8b5768ac8ccb3b7..c5b2cd20de03cc1 100644 --- a/src/content/docs/workers/testing/vitest-integration/get-started/migrate-from-miniflare-2.mdx +++ b/src/content/docs/workers/testing/vitest-integration/get-started/migrate-from-miniflare-2.mdx @@ -30,7 +30,7 @@ First, you will need to uninstall the old environment and install the new pool. ```sh npm uninstall vitest-environment-miniflare -npm install --save-dev --save-exact vitest@2.1.6 +npm install --save-dev --save-exact vitest@2.1.5 npm install --save-dev @cloudflare/vitest-pool-workers ``` From 43b35622f8612c09fec81511ca532b2f5c6f6db6 Mon Sep 17 00:00:00 2001 From: James Ross Date: Thu, 5 Dec 2024 15:29:47 +0000 Subject: [PATCH 3/5] chore: update vitest to 2.1.8 --- .../vitest-integration/get-started/migrate-from-miniflare-2.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/docs/workers/testing/vitest-integration/get-started/migrate-from-miniflare-2.mdx b/src/content/docs/workers/testing/vitest-integration/get-started/migrate-from-miniflare-2.mdx index c5b2cd20de03cc1..3d1792271e0732f 100644 --- a/src/content/docs/workers/testing/vitest-integration/get-started/migrate-from-miniflare-2.mdx +++ b/src/content/docs/workers/testing/vitest-integration/get-started/migrate-from-miniflare-2.mdx @@ -30,7 +30,7 @@ First, you will need to uninstall the old environment and install the new pool. ```sh npm uninstall vitest-environment-miniflare -npm install --save-dev --save-exact vitest@2.1.5 +npm install --save-dev --save-exact vitest@2.1.8 npm install --save-dev @cloudflare/vitest-pool-workers ``` From 1b217e2d1b8ef0a6df562a18cc11c046c2a6171e Mon Sep 17 00:00:00 2001 From: James Ross Date: Wed, 11 Dec 2024 01:05:05 +0000 Subject: [PATCH 4/5] chore: update vitest to 2.1.8 --- .../vitest-integration/get-started/write-your-first-test.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/docs/workers/testing/vitest-integration/get-started/write-your-first-test.mdx b/src/content/docs/workers/testing/vitest-integration/get-started/write-your-first-test.mdx index ac24fa967575b32..b82f5a0bf26088d 100644 --- a/src/content/docs/workers/testing/vitest-integration/get-started/write-your-first-test.mdx +++ b/src/content/docs/workers/testing/vitest-integration/get-started/write-your-first-test.mdx @@ -24,7 +24,7 @@ This guide will instruct you through installing and setting up the `@cloudflare/ Open a terminal window and make sure you are in your project's root directory. Once you have confirmed that, run: ```sh -npm install vitest@2.1.6 --save-dev --save-exact +npm install vitest@2.1.8 --save-dev --save-exact npm install @cloudflare/vitest-pool-workers --save-dev ``` From 44d6124099f135fb4a5e7252c9753b16aba4900b Mon Sep 17 00:00:00 2001 From: Greg Brimble Date: Tue, 10 Dec 2024 22:21:33 -0500 Subject: [PATCH 5/5] Update src/content/docs/workers/testing/vitest-integration/get-started/write-your-first-test.mdx --- .../vitest-integration/get-started/write-your-first-test.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/docs/workers/testing/vitest-integration/get-started/write-your-first-test.mdx b/src/content/docs/workers/testing/vitest-integration/get-started/write-your-first-test.mdx index b82f5a0bf26088d..4914465a5aa2ae9 100644 --- a/src/content/docs/workers/testing/vitest-integration/get-started/write-your-first-test.mdx +++ b/src/content/docs/workers/testing/vitest-integration/get-started/write-your-first-test.mdx @@ -32,7 +32,7 @@ The above commands will add the packages to your `package.json` file and install :::note -Currently, the `@cloudflare/vitest-pool-workers` package _only_ works with Vitest 2.0.x - 2.1.x. +Currently, the `@cloudflare/vitest-pool-workers` package _only_ works with Vitest 2.0.x - 2.1.8. :::