|
|
|
|
|
by tieTYT
3277 days ago
|
|
> Place your test files next to the implementation. Java background is probably biasing me, but I don't like this. It interferes with my ability to find code because the file list in every directory is twice as large. What are the benefits of putting it together? |
|
Component
- index.js
- Component.js
- component.scss
- Component.spec.js
This structure has worked really well for me, you have everything you need in a single directory so you don't have to jump around to another directory to find the test or styling or whatever.