mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-02 22:37:32 +00:00
Fix unit tests in rh test (#6479)
This pull request makes a minor adjustment to the test setup for `useSubscriptionCredits`. The change ensures that the actual Pinia store implementation is used for `firebaseAuthStore` rather than a mocked version, which can help improve the reliability and accuracy of the tests. ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-6479-Fix-unit-tests-in-rh-test-29d6d73d365081be8a54c260b2ce10fe) by [Unito](https://www.unito.io)
This commit is contained in:
committed by
GitHub
parent
2383a38aa0
commit
556132d3ff
@@ -4,6 +4,9 @@ import { beforeEach, describe, expect, it, vi } from 'vitest'
|
||||
import { useSubscriptionCredits } from '@/platform/cloud/subscription/composables/useSubscriptionCredits'
|
||||
import { useFirebaseAuthStore } from '@/stores/firebaseAuthStore'
|
||||
|
||||
// Unmock firebaseAuthStore so we get the real Pinia store
|
||||
vi.unmock('@/stores/firebaseAuthStore')
|
||||
|
||||
// Mock Firebase Auth and related modules
|
||||
vi.mock('vuefire', () => ({
|
||||
useFirebaseAuth: vi.fn(() => ({
|
||||
|
||||
Reference in New Issue
Block a user