main.js 786 B

123456789101112131415161718192021222324252627282930
  1. /* eslint-env mocha */
  2. // This is the main test file from which all tests can be imported top-down,
  3. // creating a directed sequence for tests that sums up to our test-suite.
  4. //
  5. // You propably want to start with low-level code and follow up to higher-level
  6. // code, like for example:
  7. //
  8. // infrastructure
  9. // utils / helpers
  10. // contexts
  11. // api
  12. // components
  13. // ui
  14. // If you want to run tests on both, server AND client, simply import them as
  15. // they are. However, if you want to restict tests to server-only or client-only
  16. // you need to wrap them inside a new describe-block
  17. if (Meteor.isServer) {
  18. describe('server', function() {
  19. import '../server/lib/tests/utils.tests';
  20. });
  21. }
  22. if (Meteor.isClient) {
  23. describe('lib', function() {
  24. import '../client/lib/tests';
  25. });
  26. }