I want to automate my revenuecat process. I test using StoreKit, but entitlements are not reset. How do I achieve this?
let session = try? SKTestSession(configurationFileNamed: "storekitconfig")
session?.resetToDefaultState()
session?.disableDialogs = true
session?.clearTransactions()
customerInfo.entitlementss"Pro"]?.isActive == true
This code returns true. How do I make it return true if I just made a purchase?