Skip to content

🐛 BUG: Analytics Engine datasets not mocked when testing #8348

@timkelty

Description

@timkelty

Which Cloudflare product(s) does this pertain to?

Wrangler

What versions are you using?

3.111.0 [Wrangler]

What operating system and version are you using?

Mac 15.3.1 (24D70)

Please provide a link to a minimal reproduction

No response

Describe the Bug

WAE mocking for wrangler dev was added, but it seems to be tied to the condition targetConsumer === "dev".

This will not always be the case when running vitest, e.g., if you need to point your tests to built files for other reasons.

Please provide any relevant error logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething that isn't working

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions