wire-service-jest-util
wire-service-jest-util copied to clipboard
emit() fires all wired apex methods, not just one that was emitted from
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.
thanks for reporting this @seanpat09. We are working on it (https://github.com/salesforce/sfdx-lwc-jest/issues/232)