From 1aa98fec5f5e6ae82c5a55c4b1234f43e25ad4b2 Mon Sep 17 00:00:00 2001 From: ToriLindsay Date: Mon, 23 Sep 2024 16:14:23 +0100 Subject: [PATCH] Updated Vitest version (#17022) --- .../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 1402e1cefe2451..3d1e31e71e4e2e 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@1.5.0 +npm install --save-dev --save-exact vitest@2.0.5 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 5a366f1dd6fad9..0c5f2b8360c172 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@1.5.0 --save-dev --save-exact +npm install vitest@2.0.5 --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 1.5.0. +Currently, the `@cloudflare/vitest-pool-workers` package _only_ works with Vitest 2.0.5. :::