I would like to write unit testing on my custom widgets using Jest framework.my custom widget consumes dojo,esri libraries.for example 'esri/tasks/query','esri/tasks/QueryTask', 'dojo/promise/all','dojo/when','dojo/Deferred' etc.
my first question is, is it possible to do custom widget unit testing with Jest framework? if so, can you please send me a basic jest sample? any help is greatly appreciated.
Here is my update on this topic.
I have pulled the functions out of define by passing all required params as arguments. started writing unit tests in jest by mocking the libs/objects.