Skip to content

Commit 5a4bd8f

Browse files
authored
Merge pull request #1209 from ember-cli/mocharc
use .mocharc.js config files
2 parents 4787973 + 39f48fa commit 5a4bd8f

4 files changed

Lines changed: 18 additions & 3 deletions

File tree

.mocharc.bin.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
'use strict';
2+
3+
module.exports = {
4+
spec: ['test/acceptance/ember-cli-update-test.js']
5+
};

.mocharc.fast.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
'use strict';
2+
3+
module.exports = {
4+
spec: ['test/+(integration|unit)/**/*-test.js']
5+
};

.mocharc.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
'use strict';
2+
3+
module.exports = {
4+
spec: ['test/!(fixtures)/**/*-test.js']
5+
};

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
"scripts": {
1111
"lint": "eslint . --ext js,json",
1212
"start": "node bin/ember-cli-update",
13-
"test": "mocha \"test/!(fixtures)/**/*-test.js\"",
14-
"test:bin": "mocha test/acceptance/ember-cli-update-test.js",
15-
"test:fast": "mocha \"test/+(integration|unit)/**/*-test.js\"",
13+
"test": "mocha",
14+
"test:bin": "mocha --config .mocharc.bin.js",
15+
"test:fast": "mocha --config .mocharc.fast.js",
1616
"preversion": "yargs-help-output README.md --npm-script-name start",
1717
"version": "git add README.md"
1818
},

0 commit comments

Comments
 (0)