Skip to content

test(app): give the capture swipe-back test a typed People loader - #20476

Merged
mdmohsin7 merged 2 commits into
mainfrom
fix/people-loader-test-type
Oct 3, 2026
Merged

mdmohsin7 merged 2 commits into
mainfrom
fix/people-loader-test-type

Conversation

@mdmohsin7

@mdmohsin7 mdmohsin7 commented Oct 3, 2026 •

Copy link
Copy Markdown
Member

Summary

main fails Dart Analyze & Tests at 8fb7dc1, so every app PR is red. The analyzer ratchet reports an error-severity diagnostic:

RETURN_OF_INVALID_TYPE_FROM_CLOSURE app/test/widgets/capturing_finish_swipe_back_test.dart:120
The returned type 'List<dynamic>' isn't returnable from a 'Future<PeopleListResponse?>' function

Two changes collided without a textual conflict:

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

🤖 Generated with Claude Code

Review in cubic

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.
@mdmohsin7
mdmohsin7 merged commit 5b1a071 into main Oct 3, 2026
37 checks passed
@mdmohsin7
mdmohsin7 deleted the fix/people-loader-test-type branch October 3, 2026 16:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant