In order to be able to generate golden tests, we need to exclude the injected dependencies from the views. We created a constant that checks if we are executing from test environment in order to achieve that.
Checklist
Implementation
[ ] Implementation matches ticket acceptance criteria and technical notes
[ ] Manually tested against Acceptance Criteria
[ ] UI checked in Light / Dark mode
Stability
[ ] Checked if changes affect any features and verified affected features work as expected
[ ] Added unit tests for new code and verified existing tests work as expected
Code quality
[ ] Updated CHANGELOG.md, README.md and package versions in pubspec.yaml
[ ] Dependencies are updated to latest versions or new tickets are created if there are breaking changes or deprecations
[ ] If an unrelated part of the codebase needs to be updated or refactored, create tickets with proposed changes
Overview
In order to be able to generate golden tests, we need to exclude the injected dependencies from the views. We created a constant that checks if we are executing from test environment in order to achieve that.
Checklist
Implementation
Stability
Code quality
CHANGELOG.md
,README.md
and package versions inpubspec.yaml