ensembleApiOverlayAttached function
Whether Ensemble's HTTP provider currently carries the test API overlay.
Implementation
bool ensembleApiOverlayAttached(EnsembleTestContext context) {
final providers = Ensemble().getConfig()?.apiProviders;
final http = providers?['http'];
return identical(http, context.apiOverlay) || http is TestApiProviderOverlay;
}