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
@Fr8Traindb If you run npm ls lodash in your project, does it show something <4.17.0 under testdouble? I've tested td.object running on top of lodash >= 4.17.4, and async functions get detected properly.
td.replace and td.object do not seem to handle Node 8 async functions.
Example:
results of fish:
{ eat: {},
swim: { [Function: testDouble] toString: [Function] },
details: { age: 10, name: 'goldie' },
toString: [Function] }
The async function eat is not a testDouble function - it gets replaced with a empty object. I get the same results using td.replace().
The text was updated successfully, but these errors were encountered: