Roman Sznajder,
We are glad to announce that, we have included the fix for the issue “Script error during Vitest unit testing - EJ2 Angular Grid ” in our 33.2.5 release. So please upgrade to our latest version of the Syncfusion package to resolve the reported issue.
Root Cause: In Vitest, the Grid’s focusModule is not initialized during initial load, causing setFirstFocusableTabIndex() to be called on undefined.
Solution: Added a null check to ensure the method is invoked only when the module is available, preventing the error.
Sample: Please find the sample attached
Feedback: https://www.syncfusion.com/feedback/73909/script-error-during-vitest-unit-testing-ej2-angular-grid
We thank you for your support and appreciate your patience in waiting for this release. Please get back to us if you need any further assistance.
Regards,
Sivaranjani R
Attachment: sqlogicmonorepo_fixed_c3590a23.zip