Use a package URI in test template import. (#12723)
Use a `package:` import when referencing source under test in test template. This is the prefered style and plays nice w/ automated refactoring. See: https://github.com/flutter/flutter-intellij/issues/1429
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
|
||||
import '../lib/main.dart';
|
||||
import 'package:{{projectName}}/main.dart';
|
||||
|
||||
void main() {
|
||||
testWidgets('Counter increments smoke test', (WidgetTester tester) async {
|
||||
|
||||
Reference in New Issue
Block a user