File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -83,14 +83,14 @@ configured by your test to either stub responses or assert invocations.
8383
8484** ` td.replace('../path/to/module'[, customReplacement]) ` **
8585
86- If you're using Node.js and don't mind using the CommonJS ` require ` method in
86+ If you're using Node.js and don't mind using the CommonJS ` require() ` method in
8787your tests (you can still use ` import ` /` export ` in your production code,
8888assuming you're compiling it down for consumption by your tests), testdouble.js
8989uses a library we wrote called [ quibble] ( https://github.com/testdouble/quibble )
90- to monkey-patch the ` require() ` feature so that your subject will automatically
91- receive your faked dependencies simply by requiring them. If you've used
92- something like [ proxyquire] ( https://github.com/thlorenz/proxyquire ) , this is
93- like a slightly terser form of that .
90+ to monkey-patch ` require() ` so that your subject will automatically receive your
91+ faked dependencies simply by requiring them. This approach may be familiar if you've used something like
92+ [ proxyquire] ( https://github.com/thlorenz/proxyquire ) , but our focus was to
93+ enable an even more minimal test setup .
9494
9595Here's an example of using ` td.replace() ` in a Node.js test's setup:
9696
You can’t perform that action at this time.
0 commit comments