Skip to content

emit() fires all wired apex methods, not just one that was emitted from #46

@seanpat09

Description

@seanpat09

When I call emit() on an apex method that is wired in a test, all of the apex methods fire instead just the specified one. I created a repo where this is reproduced: https://github.com/seanpat09/wire-service-jest-util-bug/tree/main/force-app/main/default/lwc/apexWireMethodToFunction

That test should pass, but both getContactList and getAccountList both fire when only getContactList should fire.

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