Upgrading bloc_test 7 to 8
Unknown7.1.0 → 8.5.0
Fetching 15 releases from GitHub…0 / 15
UnknownUpgrade verdict
DepDelta is still reading the notes for this range, so breaking changes can't be ruled out yet.
In plain terms
- DepDelta is still reading the release notes in this range, so it can't rule out breaking changes yet.
- This page updates as the notes come in.
Must act Still reading release notes
DepDelta is still reading the release notes in this range. This updates as they come in.
Dart SDK requirement changed in 8.0.1: >=2.7.0 <3.0.0 → >=2.12.0 <3.0.0.
Adds diff_match_patch ^0.4.1, mocktail ^0.2.0.
Drops mockito.
Moves bloc ^6.0.0 → ^7.2.0, meta ^1.1.8 → ^1.3.0, test ^1.14.2 → ^1.16.0. Your build may pick other versions.
API changes
Generated by DepDelta from published Dart source. Not mixed with prose notes.
- removed:
function emitsExactly<B extends Bloc<Object, State>, State>( B bloc, Iterable expected, { Duration duration, int skip = …, }): Future<void> - removed:
function runBlocTest<C extends Cubit<State>, State>( String description, { @required C Function() build, State seed, Function(C cubit) act, Duration wait, int skip = …, Iterable expect, Function(C cubit) verify, Iterable errors, }): Future<void> - removed:
method MockBloc.noSuchMethod(Invocation invocation, [Object returnValue]): dynamic - changed:
class MockBloc<S> extends Mock → class MockBloc<E, S> extends _MockBlocBase<S> implements Bloc<E, S> - changed:
function blocTest<C extends Cubit<State>, State>( String description, { @required C Function() build, State seed, Function(C cubit) act, Duration wait, int skip = …, Iterable expect, Function(C cubit) verify, Iterable errors, }): void → function blocTest<B extends BlocBase<State>, State>( String description, { FutureOr<void> Function()? setUp, required B Function() build, State Function()? seed, Function(B bloc)? act, Duration? wait, int skip = …, dynamic Function()? expect, Function(B bloc)? verify, dynamic Function()? errors, FutureOr<void> Function()? tearDown, dynamic tags, }): void - changed:
function whenListen<State>( Cubit<State> cubit, Stream<State> stream, ): void → function whenListen<State>( BlocBase<State> bloc, Stream<State> stream, { State? initialState, }): void - added:
class MockCubit<S> extends _MockBlocBase<S> implements Cubit<S> - added:
ctor MockBloc() - added:
function testBloc<B extends BlocBase<State>, State>({ FutureOr<void> Function()? setUp, required B Function() build, State Function()? seed, Function(B bloc)? act, Duration? wait, int skip = …, dynamic Function()? expect, Function(B bloc)? verify, dynamic Function()? errors, FutureOr<void> Function()? tearDown, }): Future<void>