Skip to content

Commit

Permalink
get rid of webpackJsonp global leak
Browse files Browse the repository at this point in the history
  • Loading branch information
sokra committed Mar 24, 2018
1 parent d7a0fc3 commit 06e9a57
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/ConfigTestCases.test.js
Expand Up @@ -226,6 +226,7 @@ describe("ConfigTestCases", () => {
);
if (exportedTests < filesCount)
return done(new Error("No tests exported by test case"));
if (testConfig.afterExecute) testConfig.afterExecute();
process.nextTick(done);
});
});
Expand Down
3 changes: 3 additions & 0 deletions test/configCases/hash-length/output-filename/test.config.js
Expand Up @@ -44,5 +44,8 @@ module.exports = {
}

return "./" + filename;
},
afterExecute: () => {
delete global.webpackJsonp;
}
};

0 comments on commit 06e9a57

Please sign in to comment.