Skip to content

Instantly share code, notes, and snippets.

@Markus-Ende
Last active August 31, 2018 09:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Markus-Ende/5c8ace3cedf3f45e359fa40cf39d7877 to your computer and use it in GitHub Desktop.
Save Markus-Ende/5c8ace3cedf3f45e359fa40cf39d7877 to your computer and use it in GitHub Desktop.
Caution, used in Medium article!
const mockService: MyService = mock(MyService);
when(mockService.someFunction()).thenReturn('some value');
const mockServiceInstance: MyService = instance(mockService);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment