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

[Workers] Add docs for Vitest testing #13092

Merged
merged 58 commits into from
Mar 14, 2024
Merged

[Workers] Add docs for Vitest testing #13092

merged 58 commits into from
Mar 14, 2024

Conversation

admah
Copy link
Contributor

@admah admah commented Feb 21, 2024

Adds new Testing section to the Workers docs that contains:

  • setup and install instructions for @cloudflare/vitest-pool-workers
  • API docs for @cloudflare/vitest-pool-workers
  • Recipes to help users with a variety of test scenarios
  • Migration guides for unstable_dev and Miniflare 2's Vitest environment

It also moves the local dev guide from Observability into this section.

@admah admah requested a review from mrbbot February 21, 2024 21:46
@github-actions github-actions bot added the product:workers Related to Workers product label Feb 21, 2024
Copy link

cloudflare-workers-and-pages bot commented Feb 22, 2024

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 7aae21d
Status: ✅  Deploy successful!
Preview URL: https://31c4174e.cloudflare-docs-7ou.pages.dev
Branch Preview URL: https://admah-vitest-pool-docs.cloudflare-docs-7ou.pages.dev

View logs

@mrbbot mrbbot force-pushed the admah/vitest-pool-docs branch from 676c1ab to 7a2994c Compare February 22, 2024 11:44
Copy link

github-actions bot commented Feb 22, 2024

This PR changes current filenames or deletes current files. Make sure you have redirects set up to cover the following paths:

  • /workers/observability/local-development-and-testing/

Copy link

github-actions bot commented Feb 22, 2024

Files with changes (up to 15)

Original Link Updated Link
https://developers.cloudflare.com/workers/testing/vitest-integration/test-apis/ https://admah-vitest-pool-docs.cloudflare-docs-7ou.pages.dev/workers/testing/vitest-integration/test-apis/
https://developers.cloudflare.com/workers/testing/vitest-integration/get-started/write-your-first-test/ https://admah-vitest-pool-docs.cloudflare-docs-7ou.pages.dev/workers/testing/vitest-integration/get-started/write-your-first-test/
https://developers.cloudflare.com/workers/testing/vitest-integration/get-started/migrate-from-miniflare-2/ https://admah-vitest-pool-docs.cloudflare-docs-7ou.pages.dev/workers/testing/vitest-integration/get-started/migrate-from-miniflare-2/
https://developers.cloudflare.com/workers/testing/vitest-integration/configuration/ https://admah-vitest-pool-docs.cloudflare-docs-7ou.pages.dev/workers/testing/vitest-integration/configuration/
https://developers.cloudflare.com/workers/testing/integration-testing/ https://admah-vitest-pool-docs.cloudflare-docs-7ou.pages.dev/workers/testing/integration-testing/
https://developers.cloudflare.com/workers/observability/local-development-and-testing/ https://admah-vitest-pool-docs.cloudflare-docs-7ou.pages.dev/workers/observability/local-development-and-testing/
https://developers.cloudflare.com/workers/testing/vitest-integration/get-started/migrate-from-unstable-dev/ https://admah-vitest-pool-docs.cloudflare-docs-7ou.pages.dev/workers/testing/vitest-integration/get-started/migrate-from-unstable-dev/
https://developers.cloudflare.com/workers/testing/local-development/ https://admah-vitest-pool-docs.cloudflare-docs-7ou.pages.dev/workers/testing/local-development/
https://developers.cloudflare.com/workers/testing/debugging-tools/ https://admah-vitest-pool-docs.cloudflare-docs-7ou.pages.dev/workers/testing/debugging-tools/
https://developers.cloudflare.com/workers/testing/vitest-integration/isolation-and-concurrency/ https://admah-vitest-pool-docs.cloudflare-docs-7ou.pages.dev/workers/testing/vitest-integration/isolation-and-concurrency/
https://developers.cloudflare.com/workers/testing/vitest-integration/get-started/ https://admah-vitest-pool-docs.cloudflare-docs-7ou.pages.dev/workers/testing/vitest-integration/get-started/
https://developers.cloudflare.com/workers/testing/unit-testing/ https://admah-vitest-pool-docs.cloudflare-docs-7ou.pages.dev/workers/testing/unit-testing/
https://developers.cloudflare.com/workers/testing/ https://admah-vitest-pool-docs.cloudflare-docs-7ou.pages.dev/workers/testing/
https://developers.cloudflare.com/workers/testing/vitest-integration/recipes/ https://admah-vitest-pool-docs.cloudflare-docs-7ou.pages.dev/workers/testing/vitest-integration/recipes/
https://developers.cloudflare.com/workers/testing/vitest-integration/known-issues/ https://admah-vitest-pool-docs.cloudflare-docs-7ou.pages.dev/workers/testing/vitest-integration/known-issues/

@crwaters16 crwaters16 self-requested a review March 14, 2024 15:32
@admah admah merged commit 652c33a into production Mar 14, 2024
7 checks passed
@admah admah deleted the admah/vitest-pool-docs branch March 14, 2024 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
product:d1 D1: https://developers.cloudflare.com/d1/ product:learning-paths product:_redirects product:workers Related to Workers product size/xl
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants