Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/rewire.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'test/debug.test.js')
-rw-r--r--test/debug.test.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/debug.test.js b/test/debug.test.js
new file mode 100644
index 0000000..4a388b6
--- /dev/null
+++ b/test/debug.test.js
@@ -0,0 +1,11 @@
+"use strict"; // run code in ES5 strict mode
+
+var rewire = require("../lib/index.js");
+
+// add breakpoints in testModules/debuggerModule.js and debug this file with your IDE to
+// check if debugging works with rewire.
+var debuggerModule = rewire("./testModules/debuggerModule.js", null, {
+ someVar: "Look if you can see me in your IDE when holding at the breakpoints"
+});
+
+debuggerModule(); \ No newline at end of file