import 'dart:async'; import 'package:buzz/features/channels/channels_provider.dart'; import 'package:buzz/shared/relay/relay_provider.dart'; /// Runs every test file as a push-capable build, so a plain `flutter test` /// needs no `--dart-define=BUZZ_PUSH_GATEWAY_URL`. Tests of a build without a /// gateway set [Env.debugPushGatewayUrlOverride] to `''` themselves. /// Activity signature checks run in place, so fake time can deliver them. Future testExecutable(FutureOr Function() testMain) async { Env.debugPushGatewayUrlOverride = 'https://push.example'; debugRunActivityChecks = (checks) async => checks(); await testMain(); }