VeryGoodOpenSource Mockingjay Versions Save

A package that makes it easy to mock, test, and verify navigation in Flutter. Created by Very Good Ventures 🦄

v0.5.0

5 months ago
  • chore(deps): bump very_good_analysis from 4.0.0+1 to 5.1.0 (#56)
  • chore: update Very Good Analysis to 5.1.0 (#57)
  • chore: updated sdk constraints for example (#60)
  • docs: update installation instructions readme (#61)
  • fix!: Updates for Flutter 3.16.0/Dart 3.2 (#65)

Migration details

This breaking change now requires users to mock the canPop method since it is being used internally by Flutter 3.16.0 (see https://github.com/flutter/flutter/pull/132249).

final navigator = MockNavigator();
when(navigator.canPop).thenReturn(true); // New, previously not always required.

In addition, if you were verifying the canPop calls you should now expect an additional call.

verify(() => navigator.canPop()).called(1); // New, previously not always required.
await tester.tap(find.byType(TextButton));
verify(() => navigator.canPop()).called(1)

v0.4.0

7 months ago
  • feat: support for mocktail ^1.0.0
  • feat: support for flutter 3.13.0
  • feat: sdk constraint to include Dart 3

v0.3.0

2 years ago
  • feat: support for mocktail ^0.3.0

v0.3.0-dev.1

2 years ago
  • feat: support for mocktail ^0.3.0

v0.2.0

2 years ago
  • feat: add mock call for canPop (thanks @allisonryan0002!)
  • feat: add mock call for maybePop (thanks @korzonkiee!)
  • feat: add whereSettings, whereName, whereArguments, whereMaintainState and whereFullscreenDialog matcher arguments to isRoute matcher
  • DEPRECATE: fix: named argument on isRoute deprecated in favor of whereName

v0.2.0-dev.2

2 years ago
  • feat: add mock call for maybePop (thanks @korzonkiee!)

v0.2.0-dev.1

2 years ago
  • feat: add whereSettings, whereName, whereArguments, whereMaintainState and whereFullscreenDialog matcher arguments to isRoute matcher
  • DEPRECATE: fix: named argument on isRoute deprecated in favor of whereName

v0.1.1

2 years ago

v0.1.0

2 years ago
  • feat: initial release 🎉

0.0.1-mockito-compat

2 years ago

This is the last release compatible with mockito.