Skip to content

docs: testing initial events - #4859

Open
AzazelSensei wants to merge 1 commit into
felangel:masterfrom
AzazelSensei:docs/testing-initial-events
Open

docs: testing initial events#4859
AzazelSensei wants to merge 1 commit into
felangel:masterfrom
AzazelSensei:docs/testing-initial-events

Conversation

@AzazelSensei

Copy link
Copy Markdown

#4229

The first event added in BlocProvider.create is widget-tree behavior, not something the bloc owns. I added a short section to the testing docs that shows the existing flutter_todos widget test (pump the page with a mocked repository and verify the subscription).

I left the example test alone. It is the same one called out on the issue and still matches the page.

Closes #4229

Document that events added in BlocProvider.create should be
covered by a widget test, using the existing flutter_todos example.
@AzazelSensei
AzazelSensei requested a review from felangel as a code owner August 13, 2026 09:17
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.

docs: testing initial events

1 participant