Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM forum
Unanswered

unit test typescript webresources d365

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
    Tejaswini Tambe 45 on at
    unit test typscript webresources

    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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,556 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,625 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans