-
Notifications
You must be signed in to change notification settings - Fork 1k
feat(vitest-pool-workers): add support for vitest 3.2.x #9439
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
Conversation
🦋 Changeset detectedLatest commit: 8dc062e The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1 file skipped due to size limits:
- pnpm-lock.yaml
|
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/15394930719/npm-package-wrangler-9439Prereleases for other packages:
wget https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/15394930719/npm-package-cloudflare-workers-bindings-extension-9439 -O ./cloudflare-workers-bindings-extension.0.0.0-vfc78a753f.vsix && code --install-extension ./cloudflare-workers-bindings-extension.0.0.0-vfc78a753f.vsix
npx https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/15394930719/npm-package-create-cloudflare-9439 --no-auto-update
npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/15394930719/npm-package-cloudflare-kv-asset-handler-9439
npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/15394930719/npm-package-miniflare-9439
npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/15394930719/npm-package-cloudflare-pages-shared-9439
npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/15394930719/npm-package-cloudflare-unenv-preset-9439
npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/15394930719/npm-package-cloudflare-vite-plugin-9439
npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/15394930719/npm-package-cloudflare-vitest-pool-workers-9439
npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/15394930719/npm-package-cloudflare-workers-editor-shared-9439
npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/15394930719/npm-package-cloudflare-workers-shared-9439
npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/15394930719/npm-package-cloudflare-workflows-shared-9439Note that these links will no longer work once the GitHub Actions artifact expires. |
| async onCancel(reason: CancelReason) { | ||
| if (DEBUG) { | ||
| __console.log(`onCancel: ${reason}`); | ||
| await scheduler.wait(100); | ||
| } | ||
| return super.onCancel(reason); | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The onCancel method is renamed to cancel on Vitest 3.2 (https://github.com/vitest-dev/vitest/pull/7878/files#r2058686709)
We can rename it and check whether the method exists, but it seems to be redundant for users as we were adding it just for debug purpose and will require us modify the debug flag manually instead of a user facing config.
d7130ad to
14f7956
Compare
petebacondarwin
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Assuming CI is happy
14f7956 to
52012f9
Compare
create-cloudflare
@cloudflare/kv-asset-handler
miniflare
@cloudflare/pages-shared
@cloudflare/unenv-preset
@cloudflare/vite-plugin
@cloudflare/vitest-pool-workers
@cloudflare/workers-editor-shared
wrangler
commit: |
52012f9 to
23871ec
Compare
23871ec to
8dc062e
Compare
Fixes #9521