main.js 824 B

1234567891011121314151617181920212223242526272829303132
  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. import '/imports/i18n/i18n.test.js';
  18. if (Meteor.isServer) {
  19. describe('server', function() {
  20. import '../server/lib/tests/utils.tests';
  21. });
  22. }
  23. if (Meteor.isClient) {
  24. describe('lib', function() {
  25. import '../client/lib/tests';
  26. });
  27. }