This is an automated email from the ASF dual-hosted git repository.

hainenber pushed a commit to branch 
fix/fix-invisible-text-tooltip-in-calendar-heatmap
in repository https://gitbox.apache.org/repos/asf/superset.git

commit 84e17408718b8dbf6fbd6fa9239172c523d4fb52
Author: hainenber <[email protected]>
AuthorDate: Mon Feb 16 18:53:03 2026 +0700

    chore: monkey-patch type issue in unit test
    
    Signed-off-by: hainenber <[email protected]>
---
 .../packages/superset-ui-core/test/utils/getSelectedText.test.ts       | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git 
a/superset-frontend/packages/superset-ui-core/test/utils/getSelectedText.test.ts
 
b/superset-frontend/packages/superset-ui-core/test/utils/getSelectedText.test.ts
index 7737cd36fb3..0f827ff17f5 100644
--- 
a/superset-frontend/packages/superset-ui-core/test/utils/getSelectedText.test.ts
+++ 
b/superset-frontend/packages/superset-ui-core/test/utils/getSelectedText.test.ts
@@ -27,8 +27,7 @@ test('Returns null if Selection object is null', () => {
 test('Returns selection text if Selection object is not null', () => {
   jest
     .spyOn(window, 'getSelection')
-    // @ts-expect-error
-    .mockImplementationOnce(() => ({ toString: () => 'test string' }));
+    .mockImplementationOnce(() => ({ toString: () => 'test string' }) as any);
   expect(getSelectedText()).toEqual('test string');
   jest.restoreAllMocks();
 });

Reply via email to