You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Usage of classes implies multiple instances of that class. However, this is not the use case for mocking, as you would expect to have a mocking interface configured at one place, once.
constmsw=newMSW()
The end usage is also ugly.
Suggestions
Internal usage of class is fine, but it may make sense to expose the instantiated instance of that class to the end developer.
importmswfrom'msw'msw.get(...)
The text was updated successfully, but these errors were encountered:
Usage of classes implies multiple instances of that class. However, this is not the use case for mocking, as you would expect to have a mocking interface configured at one place, once.
The end usage is also ugly.
Suggestions
Internal usage of class is fine, but it may make sense to expose the instantiated instance of that class to the end developer.
The text was updated successfully, but these errors were encountered: