The library for web and native user interfaces.
Don't call require("mock-modules").register("test/all", ...).
The "test/all" module will never be mocked, nor should it ever need to be reset by `dumpCache`.
Ben Newman committed
Jul 19, 2013 at 10:58 UTC
7ef5172d807de6d461090a563a43428544a11ed0
1 file changed
+1
bin/jsx
+1
@@ -41,6 +41,7 @@ require("commoner").resolve(function(id) {
41
return context.getProvidedP().then(function(idToPath) {
42
if (id !== "mock-modules" &&
43
id !== "mocks" &&
44
+ id !== "test/all" &&
45
idToPath.hasOwnProperty("mock-modules")) {
46
return source + '\nrequire("mock-modules").register(' +
47
JSON.stringify(id) + ', module);\n';