Skip to content

Conversation

@ajivanyandev
Copy link
Contributor

No description provided.

Copilot AI review requested due to automatic review settings December 16, 2025 07:02
@ajivanyandev ajivanyandev self-assigned this Dec 16, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a Vitest compatibility issue where window.getComputedStyle errors are not handled gracefully in the readThemeMarker function. The fix adds a catch block to return null when getComputedStyle throws an error, preventing test failures in environments like Vitest where this method may not be fully implemented.

Key Changes:

  • Added error handling to readThemeMarker() function in themes.ts to catch and handle getComputedStyle errors
  • Added test coverage for the new error handling behavior

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
packages/devextreme/js/__internal/ui/themes.ts Added catch block to readThemeMarker() to gracefully handle getComputedStyle errors by returning null
packages/devextreme/testing/tests/DevExpress.ui/themes.tests.js Added two new tests to verify error handling when getComputedStyle throws errors

Copilot AI review requested due to automatic review settings December 23, 2025 09:29
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

@ajivanyandev ajivanyandev merged commit a9084ad into DevExpress:25_2 Dec 29, 2025
93 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants