TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

One Thing Nobody Explained to You About TypeScript

3 点作者 johnhamlin超过 1 年前

1 comment

metaloha超过 1 年前
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.