jtdLab / rapid

Rapid CLI allows developers to create scalable Flutter Apps using predefined components.
MIT License
5 stars 1 forks source link

feat: improve templates of features to allow better testing of routing related stuff #122

Open jtdLab opened 1 year ago

jtdLab commented 1 year ago

Currently the routing tests are based on calls to a mock NavigatorObserver beeing verified. This is not perfect because the navigator only gets notfied when the routing action completes.

A better approach would be to provide a hybrid mock router which has alls neccessary routes setup to run test but allows methods like push pop replace etc beeing verifeid