dart-lang / mockito

Mockito-inspired mock library for Dart
https://pub.dev/packages/mockito
Apache License 2.0
623 stars 160 forks source link

Question: dockito in dev_dependies? #722

Open warcayac opened 7 months ago

warcayac commented 7 months ago

I've seen people adding Mockito into dev_dependencies instead of dependencies. Either they are wrong or your help is outdated. What's the correct way to install Mockito?

srawlins commented 7 months ago

Either one. If it is only needed for development (no mockito libraries imported in lib/ or bin/ or web/ I guess?) then it should be listed as a dev_dependency.