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.
83
83
84
84
** ` td.replace('../path/to/module'[, customReplacement]) ` **
85
85
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
87
87
your tests (you can still use ` import ` /` export ` in your production code,
88
88
assuming you're compiling it down for consumption by your tests), testdouble.js
89
89
uses 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 .
94
94
95
95
Here's an example of using ` td.replace() ` in a Node.js test's setup:
96
96
You can’t perform that action at this time.
0 commit comments