from Hacker News

Show HN: Testing Private Functions in JavaScript

by arvindrajnaidu on 4/9/20, 3:41 PM with 2 comments

  • by yjhoney on 4/9/20, 5:58 PM

    very interesting idea. I've come across projects where functions are exported for the only reason of testing it. This library makes it so that your helper functions get to stay privately scoped inside the file.