forked from firka/flutter
[flutter_tools] support --enable-experiment in flutter test (#55564)
Support --enable-experiment in flutter test (for flutter_tester). Required minor change for null safety.
This commit is contained in:
@@ -3,3 +3,4 @@
|
||||
analyzer:
|
||||
exclude:
|
||||
- lib/main.dart
|
||||
- test/test_test.dart
|
||||
|
||||
14
dev/integration_tests/non_nullable/test/test_test.dart
Normal file
14
dev/integration_tests/non_nullable/test/test_test.dart
Normal file
@@ -0,0 +1,14 @@
|
||||
// Copyright 2014 The Flutter Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
// @dart=2.9
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
|
||||
String? x;
|
||||
|
||||
void main() {
|
||||
testWidgets('trivial', (WidgetTester tester) async {
|
||||
expect(true, true);
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user