📜  void main() { testWidgets('Counter increments Smoke test', (WidgetTester tester) async { 构建我们的应用程序并触发一个框架.await tester.pumpWidget(MyApp()); - TypeScript 代码示例

📅  最后修改于: 2022-03-11 14:48:16.196000             🧑  作者: Mango

代码示例1
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';

import 'package:stateless/another_file.dart';

void main() {
  testWidgets('My test', (WidgetTester tester) async {
    // Build our app and trigger a frame.
    await tester.pumpWidget(MyApp());
  });
}