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

Feat(vitest-pool-workers): Support specifying an environment in tests #5612

Merged
merged 1 commit into from
Apr 15, 2024

Conversation

Skye-31
Copy link
Contributor

@Skye-31 Skye-31 commented Apr 13, 2024

What this PR solves / how to test

Fixes #5611

Author has addressed the following

@Skye-31 Skye-31 requested a review from a team as a code owner April 13, 2024 23:34
Copy link

changeset-bot bot commented Apr 13, 2024

🦋 Changeset detected

Latest commit: 3ffef0b

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@cloudflare/vitest-pool-workers Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Contributor

A wrangler prerelease is available for testing. You can install this latest build in your project with:

npm install --save-dev https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/8676965791/npm-package-wrangler-5612

You can reference the automatically updated head of this PR with:

npm install --save-dev https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/prs/5612/npm-package-wrangler-5612

Or you can use npx with this latest build directly:

npx https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/8676965791/npm-package-wrangler-5612 dev path/to/script.js
Additional artifacts:
npx https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/8676965791/npm-package-create-cloudflare-5612 --no-auto-update
npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/8676965791/npm-package-cloudflare-kv-asset-handler-5612
npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/8676965791/npm-package-miniflare-5612
npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/8676965791/npm-package-cloudflare-pages-shared-5612
npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/8676965791/npm-package-cloudflare-vitest-pool-workers-5612

Note that these links will no longer work once the GitHub Actions artifact expires.


wrangler@3.50.0 includes the following runtime dependencies:

Package Constraint Resolved
miniflare workspace:* 3.20240405.1
workerd 1.20240405.0 1.20240405.0
workerd --version 1.20240405.0 2024-04-05

Please ensure constraints are pinned, and miniflare/workerd minor versions match.

@CarmenPopoviciu CarmenPopoviciu added the awaiting reporter response Needs clarification or followup from OP label Apr 15, 2024
@Skye-31 Skye-31 removed the awaiting reporter response Needs clarification or followup from OP label Apr 15, 2024
@Skye-31 Skye-31 merged commit 8f470d9 into main Apr 15, 2024
21 checks passed
@Skye-31 Skye-31 deleted the skye/vitest-support-environment branch April 15, 2024 17:04
Skye-31 added a commit that referenced this pull request Jul 2, 2024
#5612 added support for selecting the environment of config used, but it missed passing it to the code that reads `.dev.vars.{environment}`
Skye-31 added a commit that referenced this pull request Jul 2, 2024
#5612 added support for selecting the environment of config used, but it missed passing it to the code that reads `.dev.vars.{environment}`
@workers-devprod workers-devprod mentioned this pull request Jul 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants