Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

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

@barryroodt

Description

@barryroodt

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions