forked from mui/mui-x
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.mocharc.js
24 lines (24 loc) · 806 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
// We can't import the `.mocharc.js` of the monorepo, otherwise we trigger its `setupBabel`.
module.exports = {
extension: ['js', '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: [require.resolve('./test/utils/setupBabel'), require.resolve('./test/utils/setupJSDOM')],
'watch-ignore': [
// default
'.git',
// node_modules can be nested with workspaces
'**/node_modules/**',
// Unrelated directories with a large number of files
'**/build/**',
'docs/.next/**',
],
};