Skip to content

Commit

Permalink
fix: Skip clearing undefined modules in InProcessRunner (#1339)
Browse files Browse the repository at this point in the history
  • Loading branch information
kerueter authored Feb 18, 2022
1 parent 8f02226 commit 5026e43
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ const clearModule = (fP, opts) => {
cleanup = false
for (const fn of Object.keys(require.cache)) {
if (
require.cache[fn] &&
require.cache[fn].id !== '.' &&
require.cache[fn].parent &&
require.cache[fn].parent.id !== '.' &&
Expand Down

0 comments on commit 5026e43

Please sign in to comment.