AnsweredAssumed Answered

unit testing on custom widgets using Jest framework

Question asked by sandhyabaratam@gmail.com on Mar 16, 2020

Hi,

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.

 

Regards,

Sandhya

Outcomes