diff --git a/src/index.js b/src/index.js index 92d8dff..17892af 100644 --- a/src/index.js +++ b/src/index.js @@ -140,6 +140,9 @@ class Dotenv { return obj }, {}) + // fix in case of missing + formatted['process.env'] = '{}' + return formatted } diff --git a/test/index.test.js b/test/index.test.js index ed80661..7b1a188 100644 --- a/test/index.test.js +++ b/test/index.test.js @@ -26,6 +26,8 @@ const buildExpectation = (obj) => { return all }, {}) + raw['process.env'] = '{}' + return raw }