TestHost constructor

TestHost(
  1. List<BaseService Function()> factories, {
  2. bool failWithServices = true,
  3. List<String> args = const <String>[],
  4. Map<String, dynamic> config = const <String, dynamic>{},
})

Implementation

TestHost(
  List<BaseService Function()> factories, {
  bool failWithServices = true,
  List<String> args = const <String>[],
  Map<String, dynamic> config = const <String, dynamic>{},
}) : super(
        factories,
        failWithServices: failWithServices,
        args: args,
        config: {
          'datahub': {
            'log': 'debug',
            'environment': 'dev',
            'serviceName': 'unit-test',
            'metrics': {
              'enableEndpoint': false,
            }
          },
          ...config,
        },
      );