mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-02 22:37:32 +00:00
fix: unmock firebaseAuthStore in useSubscriptionCredits tests for rh-test
The global mock in vitest.setup.ts (rh-test only) was preventing tests from accessing the real Pinia store, causing balance-related tests to fail. This mock doesn't exist in main branch, so this fix is rh-test specific.
This commit is contained in:
@@ -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