function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
shailendra modishailendra modi 

How to test setter/getter method in LWC.js using jest.?

I am trying to test LWC compoents.js using jest. There is a setter method(Step) inside of the LWC components js file, but I am unable to test the setter method. I tried the solution using mock that the jest provided for the setter method.

User-added image
lokeguptalokegupta
Shailendra can you post the snippet for getter and setter method as well?
shailendra modishailendra modi
User-added image