Open skfd opened 3 years 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.
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.