When existsSync is declared in some places it checks for fs.existsSync first, defaulting to path.existsSync when not found. In other places this is reversed. In the cases where path.existsSync is checked for first, newer versions of node will output a message to the terminal that path.existsSync is now fs.existsSync. Reversing the order in these three files gets the declaration consistent with the rest of the code base that already does this, and prevents that message from being output to the terminal.
Ran npm test, all test are still passing.
Final summary: Passed: 266, Failed: 0, Skipped: 6, Total: 272, Load errors: 0, Statement coverage: 79.79%, Branch coverage: 66.24%, Function coverage: 85.95%, Line coverage: 80.32%
When
existsSync
is declared in some places it checks forfs.existsSync
first, defaulting topath.existsSync
when not found. In other places this is reversed. In the cases wherepath.existsSync
is checked for first, newer versions of node will output a message to the terminal thatpath.existsSync
is nowfs.existsSync
. Reversing the order in these three files gets the declaration consistent with the rest of the code base that already does this, and prevents that message from being output to the terminal.Ran
npm test
, all test are still passing.Final summary: Passed: 266, Failed: 0, Skipped: 6, Total: 272, Load errors: 0, Statement coverage: 79.79%, Branch coverage: 66.24%, Function coverage: 85.95%, Line coverage: 80.32%