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