Skip to content
This repository was archived by the owner on Nov 23, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,9 @@ let app = new EmberApp(defaults, {
});
```

- `testGenerator` is automatically detected if `ember-cli-qunit` or
`ember-cli-mocha` are used, but can also be set to `qunit` and
`mocha` manually.
- `testGenerator` is automatically detected if `ember-qunit`/`ember-cli-qunit`
or `ember-mocha`/`ember-cli-mocha` are used, but can also be set to `qunit`
and `mocha` manually.

- `group` can be set to `false` to go back to the previous behavior where
every generated test was contained in its own separate module.
Expand Down
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ module.exports = {
var VersionChecker = require('ember-cli-version-checker');
var checker = new VersionChecker(this);

if (checker.for('ember-cli-qunit', 'npm').exists()) {
if (checker.for('ember-qunit', 'npm').exists() || checker.for('ember-cli-qunit', 'npm').exists()) {
this._testGenerator = 'qunit';
} else if (checker.for('ember-cli-mocha', 'npm').exists()) {
} else if (checker.for('ember-mocha', 'npm').exists() || checker.for('ember-cli-mocha', 'npm').exists()) {
this._testGenerator = 'mocha';
}
},
Expand Down