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

rusackas pushed a commit to branch replace-jest-enzyme
in repository https://gitbox.apache.org/repos/asf/superset.git


The following commit(s) were added to refs/heads/replace-jest-enzyme by this 
push:
     new fadb4c1178 TS fix.
fadb4c1178 is described below

commit fadb4c1178bc98a43dd4505cd77177af6444d768
Author: Evan Rusackas <[email protected]>
AuthorDate: Mon Feb 10 14:01:00 2025 -0700

    TS fix.
---
 superset-frontend/spec/helpers/theming.ts | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/superset-frontend/spec/helpers/theming.ts 
b/superset-frontend/spec/helpers/theming.ts
index e364b41345..72e7276c2d 100644
--- a/superset-frontend/spec/helpers/theming.ts
+++ b/superset-frontend/spec/helpers/theming.ts
@@ -31,7 +31,7 @@ type optionsType = {
 export function styledMount(
   component: ReactElement,
   options: optionsType = {},
-) {
+): ReturnType<typeof enzymeMount> {
   return enzymeMount(component, {
     ...options,
     wrappingComponent: ProviderWrapper,
@@ -45,7 +45,7 @@ export function styledMount(
 export function styledShallow(
   component: ReactElement,
   options: optionsType = {},
-) {
+): ReturnType<typeof enzymeShallow> {
   return enzymeShallow(component, {
     ...options,
     wrappingComponent: ProviderWrapper,

Reply via email to