Skip to content

Commit ee29ff3

Browse files
committed
docs: update guide to use vitest 3
1 parent d0fed0b commit ee29ff3

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/content/docs/agents/getting-started/testing-your-agent.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ The `agents-sdk-starter` template and new Cloudflare Workers projects already in
2323
Before you write your first test, install the necessary packages:
2424

2525
```sh
26-
npm install vitest@2.1.8 --save-dev --save-exact
26+
npm install vitest@~3.0.0 --save-dev --save-exact
2727
npm install @cloudflare/vitest-pool-workers --save-dev
2828
```
2929

src/content/docs/workers/testing/vitest-integration/get-started/migrate-from-miniflare-2.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ First, you will need to uninstall the old environment and install the new pool.
3030

3131
```sh
3232
npm uninstall vitest-environment-miniflare
33-
npm install --save-dev --save-exact vitest@2.1.8
33+
npm install --save-dev --save-exact vitest@~3.0.0
3434
npm install --save-dev @cloudflare/vitest-pool-workers
3535
```
3636

src/content/docs/workers/testing/vitest-integration/get-started/write-your-first-test.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@ This guide will instruct you through installing and setting up the `@cloudflare/
2424
Open a terminal window and make sure you are in your project's root directory. Once you have confirmed that, run:
2525

2626
```sh
27-
npm install vitest@2.1.8 --save-dev --save-exact
27+
npm install vitest@~3.0.0 --save-dev --save-exact
2828
npm install @cloudflare/vitest-pool-workers --save-dev
2929
```
3030

3131
The above commands will add the packages to your `package.json` file and install them as dev dependencies.
3232

3333
:::note
3434

35-
Currently, the `@cloudflare/vitest-pool-workers` package _only_ works with Vitest 2.0.x - 2.1.8.
35+
Currently, the `@cloudflare/vitest-pool-workers` package _only_ works with Vitest 2.0.x - 3.0.x.
3636

3737
:::
3838

0 commit comments

Comments
 (0)