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