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

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

Open
seanpat09 opened this issue Jun 24, 2021 · 1 comment

Comments

@seanpat09
Copy link

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.

@jodarove
Copy link
Contributor

jodarove commented Jun 29, 2021

thanks for reporting this @seanpat09. We are working on it (salesforce/sfdx-lwc-jest#232)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants