camelCaseDave / xrm-mock

:books: A fake implementation of the Xrm object model. Written in TypeScript against @types/xrm definitions.
MIT License
79 stars 31 forks source link

Feature request: Ability to observe what notifications exist on form #59

Open skfd opened 3 years ago

skfd commented 3 years ago

Dynamics does not have an ability to peek what notifications are set on form.

But for a test it would be helpful to have an ability to check that notifications were indeed set.

maichopra commented 1 week ago

This is something can usually be handled by the testing framework, but there is also an example in the tests folder that may help. I've added a page to the wiki that talks about testing notifications with Vitest.

In essence you implement a spy here is the Jest documentation and Vitest documentation if you are still looking to solve this problem.