I have my folder structured like:
backend
|-Process1
|-Process2
|-app
|-config
|-controllers
|-models
public
|-css
|-js
Where should I put my unit tests folder?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
For node projects, it’s common to have a tests folder in the top level. For example, for my projects I usually have these folders:
bin(for bins)lib(for my node.js library files)test(for tests)config(for config files, if necessary)publicorstatic(for static assets, if necessary)node_modules(where npm-installed modules end up going)For the most part it’s not too critical how you organize the code as long as it’s organized and has obvious entry points. Basically, you should be able to type “npm test” and have it work by reading the command from the package.json.