Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Vitest Integration] Update guide to use Vitest 3 #20369

Merged
merged 3 commits into from
Mar 3, 2025

Conversation

edmundhung
Copy link
Member

Summary

We have added Vitest 3 support last week. This updates the docs to install Vitest 3 instead of 2.

Close #19990

Screenshots (optional)

Documentation checklist

  • The documentation style guide has been adhered to.
  • If a larger change - such as adding a new page- an issue has been opened in relation to any incorrect or out of date information that this PR fixes.
  • Files which have changed name or location have been allocated redirects.

@@ -34,7 +34,7 @@ Using WebSockets with Durable Objects with the [`isolatedStorage`](/workers/test

When the `isolatedStorage` flag is enabled (the default), the test runner will undo any writes to the storage at the end of the test as detailed in the [isolation and concurrency documentation](/workers/testing/vitest-integration/isolation-and-concurrency/). However, Cloudflare recommends that you consider the following actions to avoid any common issues:

## Await all storage operations
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These headings should be under Isolated storage

@@ -23,7 +23,7 @@ The `agents-sdk-starter` template and new Cloudflare Workers projects already in
Before you write your first test, install the necessary packages:

```sh
npm install [email protected] --save-dev --save-exact
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We currently support only 2.0.x - 3.0.x. Using ~3.0.0 will restrict it to our supported version range.

@github-actions github-actions bot added the product:agents Build and deploy AI-powered Agents on Cloudflare that can act autonomously. label Feb 27, 2025
@github-actions github-actions bot added the product:workers Related to Workers product label Feb 27, 2025
Copy link
Contributor

Howdy and thanks for contributing to our repo. We review internal PRs within 1 week. If it's something urgent or has been sitting without a comment, start a thread in the Developer Docs space internally.

@edmundhung edmundhung merged commit b42cc8f into production Mar 3, 2025
11 checks passed
@edmundhung edmundhung deleted the edmundhung/vitest-misc-docs-update branch March 3, 2025 14:50
Copy link
Contributor

@irvinebroque irvinebroque left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👏 👏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
product:agents Build and deploy AI-powered Agents on Cloudflare that can act autonomously. product:workers Related to Workers product size/s
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update @cloudflare/vitest-pool-workers to Vitest v3