Hi Mohammad,Please ignore the previous update.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.Documentation link: https://jestjs.io/docs/en/manual-mocks#mocking-methods-which-are-not-implemented-in-jsdomHowever, we will analyze the possibilities of using all the functionalities used in our components in testing environment and get back to you with more details within 2 working days on January 21, 2019.Regards,Jayakumar D
Hi Mohammad,Please ignore the previous update.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.Documentation link: https://jestjs.io/docs/en/manual-mocks#mocking-methods-which-are-not-implemented-in-jsdomHowever, we will analyze the possibilities of using all the functionalities used in our components in testing environment and get back to you with more details within 2 working days on January 21, 2019.Regards,Jayakumar D
Still waiting for updateCan you please provide update?
Thanks a lot @Mohammad. We are also facing the same issue. Using SyncFusion React Studio.
Although this solved the previous error and my unit test cases are passing now. Thakns a lot for the help.
We are still observing the following error while runnign unit tests in jest and enzyme.
console.error
Error: Not implemented: window.computedStyle(elt, pseudoElt)