Skip to content

Commit

Permalink
feat: resolving missing process.env in v5 (#267)
Browse files Browse the repository at this point in the history
* feat: resolving missing process.env in v5

* chore: resolving tests

Co-authored-by: Matt Steele <[email protected]>
  • Loading branch information
mrsteele and Matt Steele authored Nov 6, 2020
1 parent fd5e406 commit 3ecc1e0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,9 @@ class Dotenv {
return obj
}, {})

// fix in case of missing
formatted['process.env'] = '{}'

return formatted
}

Expand Down
2 changes: 2 additions & 0 deletions test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ const buildExpectation = (obj) => {
return all
}, {})

raw['process.env'] = '{}'

return raw
}

Expand Down

0 comments on commit 3ecc1e0

Please sign in to comment.