Skip to content

Commit 7ef5172

Browse files
committed
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`.
1 parent e6812d7 commit 7ef5172

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

bin/jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ require("commoner").resolve(function(id) {
4141
return context.getProvidedP().then(function(idToPath) {
4242
if (id !== "mock-modules" &&
4343
id !== "mocks" &&
44+
id !== "test/all" &&
4445
idToPath.hasOwnProperty("mock-modules")) {
4546
return source + '\nrequire("mock-modules").register(' +
4647
JSON.stringify(id) + ', module);\n';

0 commit comments

Comments
 (0)