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
Herish SurendranHerish Surendran 

Could anyone help me in showing sample of jest test for mocking lighting messaging service in lwc.

I tried going through lwc receipe github url. https://github.com/trailheadapps/lwc-recipes/blob/master/force-app/main/default/lwc/lmsSubscriberWebComponent/__tests__/lmsSubscriberWebComponent.test.js

But it didn't help me. 
ANUTEJANUTEJ (Salesforce Developers) 
Hi Herish,

https://www.sfdcpanther.com/lightning-message-services/

An implementation with use of lightning message service in lwc is mentioned in the above link can you try checking it? but the there I couldn't find a test class for the lightning message service.

Let me know if it helps you and close your query by marking it as solved so that it can help others in the future.  

Thanks.