forked from RocketChat/Rocket.Chat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.mocharc.js
37 lines (32 loc) · 786 Bytes
/
.mocharc.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
33
34
35
36
37
'use strict';
/**
* Mocha configuration for general unit tests.
*/
const base = require('./.mocharc.base.json');
/**
* Mocha will run `ts-node` without doing type checking to speed-up the tests. It should be fine as `npm run typecheck`
* covers test files too.
*/
Object.assign(
process.env,
{
TS_NODE_FILES: true,
TS_NODE_TRANSPILE_ONLY: true,
},
process.env,
);
module.exports = {
...base, // see https://github.com/mochajs/mocha/issues/3916
exit: true,
spec: [
'ee/server/lib/ldap/*.spec.ts',
'ee/tests/**/*.tests.ts',
'ee/tests/**/*.spec.ts',
'tests/unit/app/**/*.spec.ts',
'tests/unit/app/**/*.tests.js',
'tests/unit/app/**/*.tests.ts',
'tests/unit/lib/**/*.tests.ts',
'tests/unit/lib/**/*.spec.ts',
'tests/unit/server/**/*.tests.ts',
],
};