Skip to content

Commit

Permalink
add test showing .env.vault decryption stil works with multi-files to…
Browse files Browse the repository at this point in the history
… options.path
  • Loading branch information
motdotla committed Feb 12, 2024
1 parent 6581b54 commit 5057a81
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/test-config-vault.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,15 @@ t.test('returns parsed object (set path as array)', ct => {
ct.end()
})

t.test('returns parsed object (set path as mulit-array)', ct => {
ct.plan(1)

const env = dotenv.config({ path: ['tests/.env.local', 'tests/.env'] })
ct.same(env.parsed, { ALPHA: 'zeta' })

ct.end()
})

t.test('returns parsed object (set path as array with .vault extension)', ct => {
ct.plan(1)

Expand Down

0 comments on commit 5057a81

Please sign in to comment.