diff --git a/.mocharc.bin.js b/.mocharc.bin.js new file mode 100644 index 00000000..26055f80 --- /dev/null +++ b/.mocharc.bin.js @@ -0,0 +1,5 @@ +'use strict'; + +module.exports = { + spec: ['test/acceptance/ember-cli-update-test.js'] +}; diff --git a/.mocharc.fast.js b/.mocharc.fast.js new file mode 100644 index 00000000..7018b449 --- /dev/null +++ b/.mocharc.fast.js @@ -0,0 +1,5 @@ +'use strict'; + +module.exports = { + spec: ['test/+(integration|unit)/**/*-test.js'] +}; diff --git a/.mocharc.js b/.mocharc.js new file mode 100644 index 00000000..90578f81 --- /dev/null +++ b/.mocharc.js @@ -0,0 +1,5 @@ +'use strict'; + +module.exports = { + spec: ['test/!(fixtures)/**/*-test.js'] +}; diff --git a/package.json b/package.json index 1892e29a..fcafbe82 100644 --- a/package.json +++ b/package.json @@ -10,9 +10,9 @@ "scripts": { "lint": "eslint . --ext js,json", "start": "node bin/ember-cli-update", - "test": "mocha \"test/!(fixtures)/**/*-test.js\"", - "test:bin": "mocha test/acceptance/ember-cli-update-test.js", - "test:fast": "mocha \"test/+(integration|unit)/**/*-test.js\"", + "test": "mocha", + "test:bin": "mocha --config .mocharc.bin.js", + "test:fast": "mocha --config .mocharc.fast.js", "preversion": "yargs-help-output README.md --npm-script-name start", "version": "git add README.md" },