Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,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.3.0
$ npm install --save-dev --save-exact vitest@1.5.0
$ npm install --save-dev @cloudflare/vitest-pool-workers
```

Expand Down Expand Up @@ -233,4 +233,4 @@ filename: index.spec.js
- const ids = await getMiniflareDurableObjectIds("OBJECT");
+ const ids = await listDurableObjectIds(env.OBJECT);
});
```
```
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,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@1.3.0 --save-dev --save-exact
$ npm install vitest@1.5.0 --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.

{{<Aside type="note">}}

Currently, the `@cloudflare/vitest-pool-workers` package _only_ works with Vitest 1.3.0.
Currently, the `@cloudflare/vitest-pool-workers` package _only_ works with Vitest 1.5.0.

{{</Aside>}}

Expand Down Expand Up @@ -287,4 +287,4 @@ it("responds with not found and proper status for /404", async () => {

## Related resources

- [`@cloudflare/vitest-pool-workers` GitHub repository](https://github.com/cloudflare/workers-sdk/tree/main/fixtures/vitest-pool-workers-examples) - Examples of tests using the `@cloudflare/vitest-pool-workers` package.
- [`@cloudflare/vitest-pool-workers` GitHub repository](https://github.com/cloudflare/workers-sdk/tree/main/fixtures/vitest-pool-workers-examples) - Examples of tests using the `@cloudflare/vitest-pool-workers` package.