Hi, thanks for the article!
I wonder about the project structure, when you have nested the apps inside the server, you have to replicate the whole structure in tests
How would this work if each app had own tests app/tests - would there be any benefits or potential problems?
Thank you!
Hi, good question! I think that adding tests in tests/ have more benefits, because I can actually organize tests differently. Sometimes, tests do not have to copy the original structure and most of the time it is really important to test things in between the contexts / apps.
With server/apps/*/tests approach it would be harder. But, this is just a preference, use what is best for you! 👍
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi, thanks for the article!
I wonder about the project structure, when you have nested the
apps
inside theserver
, you have to replicate the whole structure intests
How would this work if each app had own tests
app/tests
- would there be any benefits or potential problems?Thank you!
Hi, good question! I think that adding tests in
tests/
have more benefits, because I can actually organize tests differently. Sometimes, tests do not have to copy the original structure and most of the time it is really important to test things in between the contexts / apps.With
server/apps/*/tests
approach it would be harder. But, this is just a preference, use what is best for you! 👍