Where should unit test files be located in a Meteor project?


#1

Hi, I have created a basic Meteor / Redux / React project and wanted to begin writing some unit tests for my code. Looking at the Meteor documentation for testing, Meteor needs the test files to end with .test.js and to NOT be contained in any folder names tests in order for them to be run with the meteor test command. Given these conditions for working with meteor test, where is the suggested location for unit test files?

Since this is a react redux application there will be many unit test files for the various components and action creators.


#2

You can just put them next to the things they are testing.