Skip to content

Commit

Permalink
[Workers] fix: update supported vitest version (#18474)
Browse files Browse the repository at this point in the history
* fix: update supported vitest version

* chore: pin vitest to 2.1.5

This works around vitest-dev/vitest#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 <developer@gregbrimble.com>
  • Loading branch information
Cherry and GregBrimble authored Dec 11, 2024
1 parent f3ed460 commit 704e3a6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@ 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
```

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

:::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.

:::

Expand Down

0 comments on commit 704e3a6

Please sign in to comment.