michael-s-molina commented on issue #13632:
URL: https://github.com/apache/superset/issues/13632#issuecomment-826840643


   > @michael-s-molina But what file can I create for this utils? Like 
testUtils.ts but in this case we mix code of tests with real code, or for 
example I create some flow that can be rellevant for some files in FilterBar, 
where to put it? May be it make sense create folder __tests__ in FilterBar 
folder and put test related code there?
   
   @simcha90 The `__tests__` folder is also a valid option to organize your 
feature, as long as it's a test folder for each feature and not a global one. 
The majority of resources that I found use a different approach though, they 
add the tests alongside the code as my previous example, because it's really 
easy to spot test completion and also to avoid unnecessary nesting because a 
feature already is a small self-contained folder. In your specific case, I 
would add the `testUtils.ts` alongside the other utilities. You can always 
reorganize a feature into smaller features if you feel that the file structure 
is getting overwhelmed.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to