From fc3d6467ddd330cac0eb56bf69dfbb29d7ba2fca Mon Sep 17 00:00:00 2001
From: Bastien DUMONT <bdumont@grandlyon.com>
Date: Wed, 9 Oct 2024 14:30:09 +0200
Subject: [PATCH] add types

---
 src/components/Connection/SGEConnect/SgeConnectView.spec.tsx | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/components/Connection/SGEConnect/SgeConnectView.spec.tsx b/src/components/Connection/SGEConnect/SgeConnectView.spec.tsx
index f659b47e5..ad4f5fc21 100644
--- a/src/components/Connection/SGEConnect/SgeConnectView.spec.tsx
+++ b/src/components/Connection/SGEConnect/SgeConnectView.spec.tsx
@@ -1,4 +1,5 @@
 import { render, screen } from '@testing-library/react'
+import { SgeStore } from 'models'
 import React from 'react'
 import { Provider } from 'react-redux'
 import { BrowserRouter } from 'react-router-dom'
@@ -21,7 +22,7 @@ jest.mock('components/Hooks/useKonnectorAuth', () =>
 // mock sge state with shouldLaunchAccount set to true
 jest.mock('components/Connection/useForm', () => ({
   useFormData: jest.fn().mockReturnValue({ formData: {} }),
-  createInitialSgeState: jest.fn().mockReturnValue({
+  createInitialSgeState: jest.fn<SgeStore, []>().mockReturnValue({
     address: '',
     lastName: '',
     firstName: '',
-- 
GitLab