jkcfg / jk

Configuration as Code with ECMAScript
https://jkcfg.github.io
Apache License 2.0
406 stars 30 forks source link

Take more care with fs#walk #326

Closed squaremo closed 4 years ago

squaremo commented 4 years ago

There were a couple of problems with the implementation:

This commits makes the tests a bit more rigorous (the post-hook test in particular didn't check that the number of times leaving a directory was equal to the number of times entering a directory!). I've also given the walk procedure some typedocs, so it has a better explanation in the API reference.