web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Unanswered

unit test typescript webresources d365

(0) ShareShare
ReportReport
Posted on by 45

Hi any reference for typescript webresources where we can mock Xrm.Utility.getGlobalContext(), XrmQuery. In our project we are using Xrm.d.ts instead of xRM 

I am using jest , xrm-mock library to right unit test but xrm-mock have onlky basic or limited mocks. 

It would be great if anyone can provide some samples that they have implemented in their project to unit test typescripts.

Thanks,

Tejaswini

  • Tejaswini Tambe Profile Picture
    45 on at

    Hi any reference for typescript webresources where we can mock Xrm.Utility.getGlobalContext(), XrmQuery. In our project we are using Xrm.d.ts instead of types/xrm 

    I am using jest , xrm-mock library to write unit test but xrm-mock have onlky basic or limited mocks. 

    It would be great if anyone can provide some samples that they have implemented in their project to unit test typescripts.

    Thanks,

    Tejaswini

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
11manish Profile Picture

11manish 93 Super User 2026 Season 2

#2
Travis South Profile Picture

Travis South 71

#3
Daniyal Khaleel Profile Picture

Daniyal Khaleel 54 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans