TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Testing Private Functions in JavaScript

5 pointsby arvindrajnaiduabout 5 years ago

1 comment

yjhoneyabout 5 years ago
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.
评论 #22825557 未加载