wire-service-jest-util icon indicating copy to clipboard operation
wire-service-jest-util copied to clipboard

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

Open seanpat09 opened this issue 3 years ago • 1 comments

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.

seanpat09 avatar Jun 24 '21 23:06 seanpat09

thanks for reporting this @seanpat09. We are working on it (https://github.com/salesforce/sfdx-lwc-jest/issues/232)

jodarove avatar Jun 29 '21 01:06 jodarove