title: JavaScript unit tests: where to keep test/specs files (Client and Node)
body: <p>Is it ok to store test file in the location of module itself:</p>
  
  <p>Lets say I have a structure:</p>
  
  <pre><code>project\
    module1\
      submodule\
         submodule.js
         submodule.test.js
  </code></pre>
  
  <p>Or it is better to make a separate location that will repeat the structure of the project:</p>
  
  <pre><code>project\
    module1\
      submodule\
         submodule.js
  tests\
    module1\
      submodule\
         submodule.js
  </code></pre>
  
  <p>I've seen both variants. What considerations should be taken?</p>