File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ if (process.env.DOTENV_CONFIG_QUIET != null) {
1414}
1515
1616if ( process . env . DOTENV_CONFIG_TIPS != null ) {
17- // Default is `true`; this only wires through explicit env configuration.
17+ // Only wires through explicit env configuration; defaulting is handled in configDotenv .
1818 options . tips = process . env . DOTENV_CONFIG_TIPS
1919}
2020
Original file line number Diff line number Diff line change @@ -9,7 +9,9 @@ const dotenv = require('../lib/main')
99let logStub
1010
1111function hasLoggedTip ( stub ) {
12- return stub . getCalls ( ) . some ( call => call . args [ 0 ] && call . args [ 0 ] . includes ( '-- tip:' ) )
12+ return stub . getCalls ( ) . some ( call =>
13+ call . args . some ( arg => typeof arg === 'string' && arg . includes ( '-- tip:' ) )
14+ )
1315}
1416
1517t . beforeEach ( ( ) => {
You can’t perform that action at this time.
0 commit comments