How to unit test Javascript Web Resources in D365?
Please let me know if it is possible to unit test Javascript Web Resources i.e JS Files in Visual Studio 2019 ASP.NET Web Application?
How to get the executionContext & formContext object model in Visual Studio 2019 ASP.NET Web Application?
Methods like formContext.context.getUserName() & formContext.context.getUserId() are used in the Javascript Web Resources (.JS files)
https://docs.microsoft.com/en-us/powerapps/developer/model-driven-apps/clientapi/walkthrough-write-your-first-client-script?tabs=unified-interface%2Cunified-add-web-resource#complete-sample-code-used-in-the-walk-through shows sample Javascript Web Resource (.JS file) that I have to unit test.
I am not using TypeScript Web Resources.
Please provide example of how to implement Javascript Web Resources unit testing in D365.
Thanks.