kerimdzhanov / dotenv-flow

Loads environment variables from .env.[development|test|production][.local] files for Node.js® projects.
MIT License
862 stars 35 forks source link

test(dotenv-flow:integration): add symlinked `.env.local` file test, closes #46 #73

Closed kerimdzhanov closed 1 year ago

kerimdzhanov commented 1 year ago

Since Node.js v10, fs.readFile started reading the symlink target files instead of the contents of the symlink file itself.

dotenv-flow utilizes fs.readFileSync() to read the contents of the the.env* files, so it should be working out of the box, but to make it clear and ensure that the behavior is supported and won't be broken in the future I am adding this integration test.