Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
One Thing Nobody Explained to You About TypeScript (redd.one)
3 points by johnhamlin on Sept 24, 2023 | hide | past | favorite | 1 comment


I like to keep test files in the same folder as the thing(s) they'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't need to keep extra folders expanded in my IDE's project panel.

https://github.com/metaloha/ts-boilerplate shows an example boilerplate that includes this.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: