testComponents function
- @isTest
Implementation
@isTest
void testComponents(
String description,
FutureOr<void> Function(ComponentTester tester) callback, {
String? url,
bool isClient = true,
bool? skip,
Timeout? timeout,
Object? tags,
}) {
test(
description,
() async {
final binding = TestComponentsBinding(url ?? '/', isClient);
final tester = ComponentTester._(binding);
return binding.runTest(() async {
await callback(tester);
});
},
skip: skip,
timeout: timeout,
tags: tags,
);
}