Skip to content

Commit 04e78dc

Browse files
gnpricechrisbobbe
authored andcommitted
test: Enable hit-test failures as errors, not warnings
1 parent f240caf commit 04e78dc

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

test/flutter_test_config.dart

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import 'dart:async';
2+
3+
import 'package:flutter_test/flutter_test.dart';
4+
5+
Future<void> testExecutable(FutureOr<void> Function() testMain) async {
6+
// Enable these checks. See this property's doc, which is basically
7+
// an apology for the fact that (for historical reasons) it isn't
8+
// the default.
9+
WidgetController.hitTestWarningShouldBeFatal = true;
10+
11+
await testMain();
12+
}

0 commit comments

Comments
 (0)