diff --git a/components/blocks/ResendConfirmationBar/ResendConfirmationBar.vue b/components/blocks/ResendConfirmationBar/ResendConfirmationBar.vue
index beebe576..059ffe67 100644
--- a/components/blocks/ResendConfirmationBar/ResendConfirmationBar.vue
+++ b/components/blocks/ResendConfirmationBar/ResendConfirmationBar.vue
@@ -1,6 +1,8 @@
diff --git a/components/blocks/cards/ForgotPasswordCard/ForgotPasswordCard.test.ts b/components/blocks/cards/ForgotPasswordCard/ForgotPasswordCard.test.ts
index 8bdad174..ec314379 100644
--- a/components/blocks/cards/ForgotPasswordCard/ForgotPasswordCard.test.ts
+++ b/components/blocks/cards/ForgotPasswordCard/ForgotPasswordCard.test.ts
@@ -2,18 +2,32 @@ import { mockNuxtImport, mountSuspended } from '@nuxt/test-utils/runtime'
import { getByTestId } from 'root/testUtils'
import ForgotPasswordCard from './ForgotPasswordCard.vue'
import type { RecoverAccountRequest } from 'lib/api/data-contracts'
+import type { optionalParameters } from '~/composables/useApi'
-mockNuxtImport('useRecoverAccount', () => {
- return async (
- _requestData: RecoverAccountRequest,
- opts: optionalParameters = {},
- ) => {
- const { onOkay } = opts
- if (onOkay) {
- await onOkay()
+vi.mock(
+ import('~/composables/api/useRecoverAccount'),
+ async (importOriginal) => {
+ const mod = await importOriginal()
+
+ return {
+ ...mod,
+ // replace some exports
+ onOkay: vi.fn(),
}
- }
-})
+ },
+)
+
+// mockNuxtImport('useRecoverAccount', () => {
+// return async (
+// _requestData: RecoverAccountRequest,
+// opts: optionalParameters = {},
+// ) => {
+// const { onOkay } = opts
+// if (onOkay) {
+// await onOkay()
+// }
+// }
+// })
afterAll(() => {
vi.restoreAllMocks()
diff --git a/components/blocks/cards/ForgotPasswordCard/ForgotPasswordCard.vue b/components/blocks/cards/ForgotPasswordCard/ForgotPasswordCard.vue
index b4d07bd3..55377900 100644
--- a/components/blocks/cards/ForgotPasswordCard/ForgotPasswordCard.vue
+++ b/components/blocks/cards/ForgotPasswordCard/ForgotPasswordCard.vue
@@ -7,6 +7,8 @@ import CardBody from 'elements/cards/CardBody/CardBody.vue'
import CardHeader from 'elements/cards/CardHeader/CardHeader.vue'
import BaseInput from 'elements/inputs/BaseInput/BaseInput.vue'
import { isEmailValid, isUsernameValid } from 'lib/form_helpers'
+import { useModalAlert } from '#imports'
+import { useRecoverAccount } from '~/composables/api'
interface ForgotPasswordCardPops {
modal?: boolean
@@ -21,7 +23,7 @@ const emit = defineEmits<{
(event: 'close' | 'cancelClick'): void
}>()
-const props = withDefaults(defineProps(), {
+withDefaults(defineProps(), {
modal: false,
})
@@ -76,7 +78,7 @@ function resetPassword() {