A. Wrong, no assert statement, Maybe expect().tobe() ?
B. Wrong, in Jest wire is not necessary
C. Correct
D. Correct
E. Correct
Ref. https://developer.salesforce.com/docs/platform/lwc/guide/unit-testing-using-wire-utility.html
Isn't expect().tobe() an assertion? I think it is for me is A, C and D
https://trailhead.salesforce.com/content/learn/modules/test-lightning-web-components/write-a-jest-test-for-wire-service
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
moitam
9 months agoBrucePark
10 months agomoitam
9 months ago