JAJesus Arockia Sankaran S Syncfusion Team February 11, 2020 08:50 AM
Thanks for contacting Syncfusion support.
Since JEST does not have all window functions, we need to mock all functionalities of window and others related to DOM if that are not implemented in the JEST. Please refer the mocking options provided in JEST documentation.
Query 2: Honestly I don't understand the choice to not support Jest, since it's the official test tool for React applications, and one of the most used globally.
We have considered the reported issue of Jest unit test fails on our react components and logged a task for it. This issue will be fixed in any one of our upcoming releases. You can track the this using the below feedback link.
Hi guys i think what marcello meant is to list the bunch of functions that we need to mock
not how to do it
if you can come up with that list, and some examples that would be great thanks!!
JAJesus Arockia Sankaran S Syncfusion Team August 31, 2020 11:38 AM
Sorry for the inconvenience.
We would want to inform you that we have to mock possibly all of the Windows and DOM functionalities and we have already logged a bug report as “Jest unit test fails in React components”. You can keep track of the bug from the feedback portal below.