-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Expand file tree
/
Copy path.mocharc.cjs
More file actions
22 lines (20 loc) · 657 Bytes
/
Copy path.mocharc.cjs
File metadata and controls
22 lines (20 loc) · 657 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
const Module = require('node:module');
const process = require('node:process');
if (!Module.register) {
// eslint-disable-next-line no-console
console.log('JHipster test requires node >=18.19.0 || >= 20.6.0\n');
process.exit(1);
}
module.exports = {
recursive: true,
reporter: 'spec',
slow: 0,
timeout: 50000,
ui: 'bdd',
extension: ['js', 'spec.cjs', 'spec.mjs', 'spec.ts', 'spec.mts'],
// Resolve absolute path for test with fork and different cwd.
// `loader` options is passed to forks, but `require` is not.
// Use node-option instead (it overrides loader option)
parallel: true,
require: ['yeoman-test/mocha-cleanup'],
};