forked from dev-protocol/stripe-node
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.mocharc.js
22 lines (18 loc) · 605 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
'use strict';
// Configuration for our Mocha test suite.
const config = {
color: true,
// Run tests in parallel.
parallel: true,
// Recurse through all tests in the test directory.
recursive: true,
extension: ["js", "ts"],
require: "ts-node/register/transpile-only,./test/setup",
};
if (process.argv.find(a => a.includes('WebStorm'))) {
// Parallel doesn't work correctly when running from JetBrains WebStorm
config.parallel = false;
}
// Ensure we are using the 'as promised' libs before any tests are run:
require('chai').use(require('chai-as-promised'));
module.exports = config;