The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/.mocharc.client.js

32 lines
688 B

'use strict';
/**
* Mocha configuration for client-side unit and integration 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
require: [
...base.require,
'./tests/setup/registerWebApiMocks.ts',
'./tests/setup/cleanupTestingLibrary.ts',
],
exit: false,
slow: 200,
spec: [
'client/**/*.spec.ts',
'client/**/*.spec.tsx',
],
};