mockingjay
A package that makes it easy to mock, test and verify navigation calls in Flutter.
2.1.0
28K downloads/mo
#1908 most downloaded on pub.dev
VeryGoodOpenSource/mockingjay
What this package is like to depend on
Last release 8 months ago
02 Dec 2025
Release timing varies
gaps range from 2 weeks to 1.4 years
Nearly every release is documented
notes for 10 of 10 stable releases
Nothing withdrawn
no release was ever pulled
5 years old
14 releases · first in 2021
1 release in the last 12 months
see the full history below
Release timeline
14 releases · Jul 2021 to Dec 2025Releases
latest 14-
2.1.002 Dec 2025Release notes
Open source →- fix: update constraint in pubspec.yaml (#101)
- chore: v2.0.0 (#102)
- chore(deps): bump very_good_analysis from 8.0.0 to 9.0.0 in /example (#104)
- chore(deps): bump very_good_analysis from 8.0.0 to 9.0.0 (#103)
- chore(deps): bump actions/checkout from 4 to 5 (#105)
- chore(deps): bump very_good_analysis from 9.0.0 to 10.0.0 (#107)
- chore(deps): bump actions/checkout from 5 to 6 (#108)
- chore: upgrade dependencies to Dart 3.10.0, Flutter 3.38.1, test 1.26.3 (#110)
-
2.0.003 Jun 2025Release notes
Open source →
Migration details
Flutter 3.32.0 changed the signature of Navigator.removeRouteBelow which caused a compile time error flutter/flutter#157725.
// Before: when(() => navigator.removeRouteBelow(any())).thenAnswer((_) {}); // After: when( () => navigator.removeRouteBelow<Object?>(any(), any()), ).thenAnswer((_) {});
Release notes
Open source →Note: This release supports Flutter 3.32.0, for migration details see the release notes.
-
1.0.019 Mar 2025Release notes
Open source →- chore(deps): bump very_good_analysis from 6.0.0 to 7.0.0 in /example (#82)
- chore!: remove deprecated parameter (#86)
- chore: bumping very good analysis from 6.0.0 to 7.0.0 (#87)
- feat: support
removeRouteBelowmethod (#90) - chore: bumping flutter version to 3.29.0 and bumping example dependencies (#88)
- fix: fixing formatting step (#92)
Migration details
The
isRoutematchernamedparameter has reached its full deprecation cycle, usewhereNameinstead:// Before: isRoute(named: 'name'); // After: isRoute(whereName: 'name');
Release notes
Open source →Note: This release supports Flutter 3.29.0. Contains a breaking change, where the
isRoutenamedparameter has reached the full deprecation cycle.- chore(deps): bump very_good_analysis from 6.0.0 to 7.0.0 in /example (#82)
- chore!: remove deprecated parameter (#86)
- chore: bumping very good analysis from 6.0.0 to 7.0.0 (#87)
- feat: support
removeRouteBelowmethod (#90) - chore: bumping flutter version to 3.29.0 and bumping example dependencies (#88)
- fix: fixing formatting step (#92)
-
0.6.027 Aug 2024Release notes
Open source →Release notes
Open source → -
0.5.022 Nov 2023Release notes
Open source →- 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
canPopmethod since it is being used internally by Flutter 3.16.0 (see flutter/flutter#132249).final navigator = MockNavigator(); when(navigator.canPop).thenReturn(true); // New, previously not always required.
In addition, if you were verifying the
canPopcalls 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)
Release notes
Open source →Note: This release supports Flutter 3.16.0, for migration details see the release notes.
-
0.4.018 Aug 2023Release notes
Open source →- feat: support for
mocktail ^1.0.0 - feat: support for
flutter 3.13.0 - feat: sdk constraint to include Dart 3
Release notes
Open source →- feat: support for
mocktail ^1.0.0 - feat: support for
flutter 3.13.0 - feat: sdk constraint to include Dart 3
- feat: support for
-
0.3.004 Apr 2022 -
0.3.0-dev.103 Mar 2022 pre-release -
0.2.030 Nov 2021Release notes
Open source →- feat: add mock call for
canPop(thanks @allisonryan0002!) - feat: add mock call for
maybePop(thanks @korzonkiee!) - feat: add
whereSettings,whereName,whereArguments,whereMaintainStateandwhereFullscreenDialogmatcher arguments toisRoutematcher - DEPRECATE: fix:
namedargument onisRoutedeprecated in favor ofwhereName
Release notes
Open source →- feat: add mock call for
canPop(thanks @allisonryan0002!) - feat: add mock call for
maybePop(thanks @korzonkiee!) - feat: add
whereSettings,whereName,whereArguments,whereMaintainStateandwhereFullscreenDialogmatcher arguments toisRoutematcher - DEPRECATE: fix:
namedargument onisRoutedeprecated in favor ofwhereName
- feat: add mock call for
-
0.2.0-dev.319 Nov 2021 pre-release -
0.2.0-dev.213 Oct 2021 pre-release -
0.2.0-dev.111 Oct 2021 pre-releaseRelease notes
Open source →- feat: add
whereSettings,whereName,whereArguments,whereMaintainStateandwhereFullscreenDialogmatcher arguments toisRoutematcher - DEPRECATE: fix:
namedargument onisRoutedeprecated in favor ofwhereName
- feat: add
-
0.1.109 Sep 2021Release notes
Open source →- refactor: reorder mock navigator provider parameters (#14, thanks @JigneshPatel23)
-
0.1.013 Jul 2021