Skip to content

Commit

Permalink
Don't call require("mock-modules").register("test/all", ...).
Browse files Browse the repository at this point in the history
The "test/all" module will never be mocked, nor should it ever need to be
reset by `dumpCache`.
  • Loading branch information
benjamn committed Jul 19, 2013
1 parent e6812d7 commit 7ef5172
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bin/jsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ require("commoner").resolve(function(id) {
return context.getProvidedP().then(function(idToPath) {
if (id !== "mock-modules" &&
id !== "mocks" &&
id !== "test/all" &&
idToPath.hasOwnProperty("mock-modules")) {
return source + '\nrequire("mock-modules").register(' +
JSON.stringify(id) + ', module);\n';
Expand Down

0 comments on commit 7ef5172

Please sign in to comment.