From 704e3a603b8e8f6fc64379d9aef09b2baa9ce953 Mon Sep 17 00:00:00 2001 From: James Ross Date: Wed, 11 Dec 2024 03:36:29 +0000 Subject: [PATCH] [Workers] fix: update supported vitest version (#18474) * fix: update supported vitest version * chore: pin vitest to 2.1.5 This works around https://github.com/vitest-dev/vitest/issues/6992 being an issue with Vite 6 * chore: update vitest to 2.1.8 * chore: update vitest to 2.1.8 * Update src/content/docs/workers/testing/vitest-integration/get-started/write-your-first-test.mdx --------- Co-authored-by: Greg Brimble --- .../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..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.0.5 +npm install --save-dev --save-exact vitest@2.1.8 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..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 @@ -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.8 --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.8. :::