Skip to content

Commit

Permalink
Forward options to Environment options.
Browse files Browse the repository at this point in the history
Some features moved to the Environment, so they need to be configured
there.
  • Loading branch information
mshima committed Feb 26, 2021
1 parent c6e3493 commit a5bd580
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/run-context.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,10 @@ RunContext.prototype.build = function (callback = () => {}) {

this.targetDirectory = this.targetDirectory || process.cwd();

const testEnv = helpers.createTestEnv(
this.envOptions.createEnv,
this.envOptions
);
const testEnv = helpers.createTestEnv(this.envOptions.createEnv, {
...this.options,
...this.envOptions
});
this.env = this.envCB ? this.envCB(testEnv) || testEnv : testEnv;

this.lookups.forEach((lookup) => {
Expand Down

0 comments on commit a5bd580

Please sign in to comment.