Skip to content

Commit 06e9a57

Browse files
committed
get rid of webpackJsonp global leak
1 parent d7a0fc3 commit 06e9a57

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

test/ConfigTestCases.test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,7 @@ describe("ConfigTestCases", () => {
226226
);
227227
if (exportedTests < filesCount)
228228
return done(new Error("No tests exported by test case"));
229+
if (testConfig.afterExecute) testConfig.afterExecute();
229230
process.nextTick(done);
230231
});
231232
});

test/configCases/hash-length/output-filename/test.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,8 @@ module.exports = {
4444
}
4545

4646
return "./" + filename;
47+
},
48+
afterExecute: () => {
49+
delete global.webpackJsonp;
4750
}
4851
};

0 commit comments

Comments
 (0)