hainenber commented on code in PR #38010:
URL: https://github.com/apache/superset/pull/38010#discussion_r2814883874


##########
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);

Review Comment:
   This is to fix a type issue when performing hot reload with `npm run 
dev-server` 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to