Unverified Commit 9638756c authored by Jonah Williams's avatar Jonah Williams Committed by GitHub

Apply mocks to test command to deflake web_fs test (#42118)

parent ebfe6020
...@@ -20,6 +20,7 @@ import 'package:flutter_tools/src/web/compile.dart'; ...@@ -20,6 +20,7 @@ import 'package:flutter_tools/src/web/compile.dart';
import 'package:mockito/mockito.dart'; import 'package:mockito/mockito.dart';
import '../../src/common.dart'; import '../../src/common.dart';
import '../../src/mocks.dart';
import '../../src/testbed.dart'; import '../../src/testbed.dart';
void main() { void main() {
...@@ -88,7 +89,9 @@ void main() { ...@@ -88,7 +89,9 @@ void main() {
})); }));
test('Builds a web bundle - end to end', () => testbed.run(() async { test('Builds a web bundle - end to end', () => testbed.run(() async {
final CommandRunner<void> runner = createTestCommandRunner(BuildCommand()); final BuildCommand buildCommand = BuildCommand();
applyMocksToCommand(buildCommand);
final CommandRunner<void> runner = createTestCommandRunner(buildCommand);
final List<String> dependencies = <String>[ final List<String> dependencies = <String>[
fs.path.join('packages', 'flutter_tools', 'lib', 'src', 'build_system', 'targets', 'web.dart'), fs.path.join('packages', 'flutter_tools', 'lib', 'src', 'build_system', 'targets', 'web.dart'),
fs.path.join('bin', 'cache', 'flutter_web_sdk'), fs.path.join('bin', 'cache', 'flutter_web_sdk'),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment