VeryGoodOpenSource / mockingjay

A package that makes it easy to mock, test, and verify navigation in Flutter. Created by Very Good Ventures ๐Ÿฆ„
https://pub.dev/packages/mockingjay
MIT License
112 stars 7 forks source link

feat: fixing for Flutter 3.13.0 #51

Closed erickzanardo closed 1 year ago

erickzanardo commented 1 year ago

Description

It seems that the navigator in Flutter 3.13.0 has changed a little bit how it works internally, those changes broke Mockinjay because how it "hooks" mocks in the navigation made that some internal fields were not populated, breaking the tests when the mocked navigator was disposed.

This PR adds an addition hack in order to trick those unpopulated internal fields so it can start working again.

Type of Change

Fixes #52