Skip to content

Commit

Permalink
allow to reuse mem-fs instance
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima committed Nov 29, 2022
1 parent 8c6a391 commit 53a57ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/environment.js
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ class Environment extends Base {
this.command = this.options.command;

this.runLoop = new GroupedQueue(Environment.queues, false);
this.sharedFs = memFs.create();
this.sharedFs = this.options.sharedFs || memFs.create();

// Each composed generator might set listeners on these shared resources. Let's make sure
// Node won't complain about event listeners leaks.
Expand Down

0 comments on commit 53a57ab

Please sign in to comment.