Description
Describe the bug
bloc_test
version 8.0.1 introduces a breaking change in specific setups compared to version 8.0.0.
See PR #2473 for the update.
In particular "feat: export mocktail
" causes this if in in a test class, the package mockito
was also imported and mocktail
was not.
I realize it is was probably unintended in version 8.0.0 to begin with that it was possible to import both mockito
and bloc_test
and use them side-by-side. However, this did work just fine.
I had test code that was working as expected.
When I now update to bloc_test
8.0.1, I get syntax errors and my code fails to compile.
To Reproduce
Steps to reproduce the behavior:
- Have a test class that uses
bloc_test
8.0.0 for bloc tests andmockito
for mocks in that class. - Update
bloc_test
to 8.0.1 - See syntax errors
Additional context
I don't want to blame anyone. The update is already released and I can imagine that this was originally planned for the 8.0.0 release, so I guess it's fine. I just wanted to bring this to your attention.