Repository navigation
test(app): give the capture swipe-back test a typed People loader - #20476
Merged
Merged
Conversation
677ee83 changed PeopleProvider.loadPeople to return Future<PeopleListResponse?>, and f0f2790 (#20375) added this test passing `() async => []`. Each was green on its own; together on main (8fb7dc1) the analyzer ratchet fails with RETURN_OF_INVALID_TYPE_FROM_CLOSURE, which fails Dart Analyze & Tests on every app PR. Verification: - flutter analyze (whole app): 0 errors. - flutter test test/widgets/capturing_finish_swipe_back_test.dart: 2 pass.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
mainfails Dart Analyze & Tests at 8fb7dc1, so every app PR is red. The analyzer ratchet reports an error-severity diagnostic:Two changes collided without a textual conflict:
PeopleProvider.loadPeopleto returnFuture<PeopleListResponse?>.() async => [].Each was green on its own branch.
Change
The test passes
const PeopleListResponse(people: []), the same shape the other People tests use. This is a test-only change; no app code changes.Product invariants affected
none
Verification
flutter analyzeover the whole app: 0 errors.flutter test test/widgets/capturing_finish_swipe_back_test.dart: 2 tests pass.🤖 Generated with Claude Code