Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
phated committed Mar 16, 2024
1 parent 44d39c4 commit 74cf3dc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion index.js
Expand Up @@ -119,7 +119,9 @@ Liftoff.prototype.buildEnvironment = function (opts) {
// resolve something like `{ gulpfile: "./abc.xyz" }` to the absolute path
// based on the path of the configFile
if (Object.prototype.hasOwnProperty.call(configFile, configName)) {
configFile[configName] = path.resolve(path.dirname(configFilePath), configFile[configName]);
if (typeof configFile[configName] === 'string') {
configFile[configName] = path.resolve(path.dirname(configFilePath), configFile[configName]);
}
}

visited[configFilePath] = true;
Expand Down
2 changes: 1 addition & 1 deletion test/index.js
Expand Up @@ -611,7 +611,7 @@ describe('Liftoff', function () {
},
});
app.prepare({}, function (env) {
expect(env.configPath).toMatch(null);
expect(env.configPath).toEqual(null);
done();
});
});
Expand Down

0 comments on commit 74cf3dc

Please sign in to comment.