I am new to the Jasmine testing framework and would love to get some guidance. Under the tests folder, I have the following directory structure:
tests/jasmine/client
tests/jasmine/server
Under these 2 folders, I have:
tests/jasmine/client/integration
tests/jasmine/client/unit
and
tests/jasmine/server/integration
tests/jasmine/server/unit
I am confused about the placement of code in the right folder. All my testing pertains to Meteor.methods that are (mostly) on the server. I understand that tests placed under the 'unit' testing folder have no access to any Meteor code and need stubs to be implemented, and that tests in the client folder test client code (similar for server folder). However, does this mean:
- All my tests for server Meteor.methods should be on server/integration?
- Methods that are in the /collections folder (accessible to both client and server) can be tested in either client or server?