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

Unable to run vitest with Workflows using @cloudflare/vitest-pool-workers #791

Closed
barryroodt opened this issue Dec 10, 2024 · 1 comment
Closed

Comments

@barryroodt
Copy link

I'm running into an issue where vitest throws a MiniflareCoreError [ERR_RUNTIME_FAILURE] exception whenever a Workflow is configured on a worker.

A good example can be found via Cloudflare's own official documentation: https://developers.cloudflare.com/workflows/examples/twilio/

This points to the following repository: https://github.com/craigsdennis/twilio-cloudflare-workflow

To reproduce - clone the repository above, npm install then npm run test. Vitest will return the following exception:

[vpw:inf] Starting isolated runtimes for vitest.config.mts...
Worker "workflows:never-gonna"'s binding "USER_WORKFLOW" refers to service "core:user:vitest-pool-workers-runner-" with a named entrypoint "NeverGonnaWorkflow", but "core:user:vitest-pool-workers-runner-" has no such named entrypoint.

This is the exact same exception I get when running vitest in my own worker. As soon as I remove the Workflows config from wrangler.toml the tests run without issue.

Running wrangler dev (in my local setup) with the Workflow configured runs without issue.

Happy to share more information if that would be helpful. Thanks.

@barryroodt
Copy link
Author

Closing as issue already reported here: cloudflare/workers-sdk#7414

@github-project-automation github-project-automation bot moved this from Untriaged to Done in workers-sdk Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

1 participant