it function

  1. @isTest
void it(
  1. String description,
  2. Future<void> body(
    1. WidgetTester tester
    )
)

Creates a new test case with the given description (converted to a string) and body. These are like "testWidgets" in flutter_test.

Implementation

@isTest
void it(String description, Future<void> Function(WidgetTester tester) body) {
  final widgetDeclarer = _widgetDeclarer;
  testWidgets(description, (tester) async {
    await widgetDeclarer.runSetUps(tester);
    await body(tester);
    await widgetDeclarer.runTearDowns(tester);
  });
}