Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
silesky committed Oct 27, 2023
1 parent 14fa05c commit 6f78194
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/**
* Allows mocked objects to throw a helpful error message when a method is called without an implementation
*/
export const addDebugMockImplementation = (mock: jest.Mocked<any>) => {
Object.entries(mock).forEach(([method, value]) => {
// automatically add mock implementation for debugging purposes
Expand Down

0 comments on commit 6f78194

Please sign in to comment.