mocktail icon indicating copy to clipboard operation
mocktail copied to clipboard

A mock library for Dart inspired by mockito

Results 43 mocktail issues
Sort by recently updated
recently updated
newest added

**Describe the bug** If a data type is specified to a variable that receives the mocked response, an exception is thrown with the following message: `type 'Null' is not a...

**Describe the bug** When upgrading to flutter 3.0.3 I received the following error: Expected version number after ">=" in ">=2.12-0-0

question
waiting for response

Suppose we have following class (DbContext from Drift Sqlite database) ```dart class LocalDatabaseContext with AppLoggy { final LocalDatabase _db; LocalDatabaseContext({LocalDatabase? db}) : _db = db ?? DI.resolve(); Future profileSessions(Future Function(ProfileSessionsDao)...

Hello, I am getting the classic "Error type 'Null' is not a subtype of type 'Query'" error but I have stubbed the method and I am still getting this error....

**Describe the bug** `resetMocktailState` docs says that it resets all mocktail states but doesn't. It seems it does not reset verifying call count. I found `clearInteractions` and `reset` seem to...

bug

just like the title states under Flutter beta 3.1.0.9 dart 2.18.0 Error only shows up under compiling while the IDE will give the error that the verify function is not...

question
waiting for response

i am trying to test cash articles with HIVE package put it throws a type 'Null' is not a subtype >of type 'Future I stubed it but I don't know...

**Describe the bug** When verifying that 2 actions have been dispatched from a redux store in a redux middleware one after the other, the verify function cannot distinguish the 2...

question
waiting for response

**Describe the bug** Mocking network images in one test will mock them for all upcoming tests in the same file. **To Reproduce** Updated tests from the [example](https://github.com/felangel/mocktail/blob/2fbf56235eff60596e79bf2031fe639e38f769d4/packages/mocktail_image_network/example/test/image_test.dart): ``` void main()...

waiting for response

## Status **READY** ## Breaking Changes NO ## Description Noticed that in last section of README.md , about the `Why am I seeing error: type 'Null' is not a subtype...