-
-
Notifications
You must be signed in to change notification settings - Fork 34
/
.mocharc.js
27 lines (27 loc) · 764 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
module.exports = {
extension: ['js', 'mjs', 'ts', 'tsx'],
ignore: [
'**/build/**',
'**/node_modules/**',
// Mocha seems to ignore .next anyway (maybe because dotfiles?).
// We're leaving this to make sure.
'docs/.next/**',
],
recursive: true,
timeout: (process.env.CIRCLECI === 'true' ? 5 : 2) * 1000, // Circle CI has low-performance CPUs.
reporter: 'dot',
require: [
'@mui/internal-test-utils/setupBabel',
'@mui/internal-test-utils/setupJSDOM',
'./packages/mui-base/test/setup.ts',
],
'watch-ignore': [
// default
'.git',
// node_modules can be nested with workspaces
'**/node_modules/**',
// Unrelated directories with a large number of files
'**/build/**',
'docs/.next/**',
],
};