mockingjay
mockingjay copied to clipboard
A package that makes it easy to mock, test, and verify navigation in Flutter. Created by Very Good Ventures 🦄
Is there any form to mock NavigatorState? In my navigations tests with `Navigator.of(context)` the mock with mockingjay works fine, but some parts of my application uses NavigatorState and the mocks...
### Description I tried to use Mockingjay and used it according to the example, but all my tests failed. Well then, I copied the whole example into a new smalltest_test.dart...
## Description - Updates to Flutter 3.3.1 - Uses very_good_workflows for github actions - Adds dependabot ## Type of Change - [X] ✨ New feature (non-breaking change which adds functionality)...
It seems to be unable to mock navigator interactions when code in tests depends on types that are not publicly visible. It's not uncommon that the Flutter SDK uses internal...
**Describe the bug** When I open a dialog with `showDialog` and I pop it, `verify` tells me it never called `.pop` while it did. ```sh popping... popped! ══╡ EXCEPTION CAUGHT...