From 39f48fa9b4f7f7687cc92817821fc38161ad1127 Mon Sep 17 00:00:00 2001 From: Kelly Selden Date: Fri, 3 Jun 2022 09:47:07 -0700 Subject: [PATCH] use .mocharc.js config files --- .mocharc.bin.js | 5 +++++ .mocharc.fast.js | 5 +++++ .mocharc.js | 5 +++++ package.json | 6 +++--- 4 files changed, 18 insertions(+), 3 deletions(-) create mode 100644 .mocharc.bin.js create mode 100644 .mocharc.fast.js create mode 100644 .mocharc.js 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" },