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
When I call td.replace(module) outside of it (inside of a describe) node gives this error. Error: testdouble.js - td.replace - No "undefined" property was found.
The error goes away if I do td.replace(module, 'property')
But inside of it td.replace(module) will work.
The text was updated successfully, but these errors were encountered:
td.replace should only be used in the context of running a test, so inside an it or beforeEach, but not inside a describe callback (which is suite-definition time, not test-run-time) or at the top of a module (which is module-load-time). See the example in the docs
When I call td.replace(module) outside of it (inside of a describe) node gives this error.
Error: testdouble.js - td.replace - No "undefined" property was found.
The error goes away if I do
td.replace(module, 'property')
But inside of it td.replace(module) will work.
The text was updated successfully, but these errors were encountered: