()
| 814 | } |
| 815 | |
| 816 | export function getMockSubscriptionType(): SubscriptionType | null { |
| 817 | if (!mockEnabled || process.env.USER_TYPE !== 'ant') { |
| 818 | return null |
| 819 | } |
| 820 | // Return the explicitly set subscription type, or default to 'max' |
| 821 | return mockSubscriptionType || DEFAULT_MOCK_SUBSCRIPTION |
| 822 | } |
| 823 | |
| 824 | // Export a function that checks if we should use mock subscription |
| 825 | export function shouldUseMockSubscription(): boolean { |
no outgoing calls
no test coverage detected