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
Copy file name to clipboardExpand all lines: README.md
+6-1Lines changed: 6 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,12 @@ rewire adds a special setter and getter to modules so you can modify their behav
8
8
- leak private variables
9
9
- override variables within the module.
10
10
11
-
rewire does**not** load the file and eval the contents to emulate node's require mechanism. In fact it uses node's own require to load the module. Thus your module behaves exactly the same in your test environment as under regular circumstances (except your modifications).
11
+
rewire does**not** load the file and eval the contents to emulate node's require mechanism. In fact it uses node's own
12
+
require to load the module. Thus your module behaves exactly the same in your test environment as under regular
13
+
circumstances (except your modifications).
14
+
15
+
Good news to all caffeine-addicts: rewire works also with[Coffee-Script](http://coffeescript.org/). Note that in this
16
+
case CoffeeScript needs to be listed in your devDependencies.
12
17
13
18
If you want to use rewire also on the client-side take a look at[client-side bundlers](https://github.com/jhnns/rewire#client-side-bundlers)