From 8e7eff8d3827be7ad7bd33b8f6c1114a4666573d Mon Sep 17 00:00:00 2001 From: Sourcegraph Date: Thu, 25 Apr 2024 20:15:07 +0000 Subject: [PATCH] Replace mockito with mocktail --- build.yaml | 5 ----- pubspec.yaml | 2 +- test/lifecycle_module_test.dart | 2 +- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/build.yaml b/build.yaml index 8be0dc2..d1347b3 100644 --- a/build.yaml +++ b/build.yaml @@ -1,8 +1,3 @@ targets: $default: builders: - # mockito's builder is expensive and is not needed until this package is - # migrated to null-safety. At that point, it should be scoped only to - # relevant files. - mockito:mockBuilder: - enabled: false diff --git a/pubspec.yaml b/pubspec.yaml index 169eb95..36dba6d 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -20,7 +20,7 @@ dev_dependencies: dart_style: ^2.1.1 dependency_validator: ^3.2.2 matcher: ^0.12.10 - mockito: ^5.3.1 + mocktail: ^1.0.3 test: ^1.16.8 dependency_validator: diff --git a/test/lifecycle_module_test.dart b/test/lifecycle_module_test.dart index 55e4f40..ca5ab1e 100644 --- a/test/lifecycle_module_test.dart +++ b/test/lifecycle_module_test.dart @@ -17,7 +17,7 @@ import 'dart:async'; import 'package:logging/logging.dart'; import 'package:meta/meta.dart' show protected; -import 'package:mockito/mockito.dart'; +import 'package:mocktail/mocktail.dart'; import 'package:opentracing/noop_tracer.dart'; import 'package:opentracing/opentracing.dart'; import 'package:test/test.dart';