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.

One Thing Nobody Explained to You About TypeScript

3 pointsby johnhamlinover 1 year ago

1 comment

metalohaover 1 year ago
I like to keep test files in the same folder as the thing(s) they&#x27;re testing. It makes it easy to find specific ones (since the filenames are `utilities.ts` and `utilities.test.ts`, for example) and I don&#x27;t need to keep extra folders expanded in my IDE&#x27;s project panel.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;metaloha&#x2F;ts-boilerplate">https:&#x2F;&#x2F;github.com&#x2F;metaloha&#x2F;ts-boilerplate</a> shows an example boilerplate that includes this.