Skip to content

Commit

Permalink
[BUGFIX lts] blueprints: fix framework detection to work with prerele…
Browse files Browse the repository at this point in the history
…ase versions of ember-cli-mocha

`semver.satisfies` does not cover prerelease versions like `*.*.*-beta` as required, so use `gte`
  • Loading branch information
simonihmig committed Dec 6, 2017
1 parent ce7fae0 commit 5aba2bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blueprints/test-framework-detector.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ module.exports = function(blueprint) {

} else if ('ember-cli-mocha' in dependencies) {
var checker = new VersionChecker({ root: this.project.root });
if (fs.existsSync(this.path + '/mocha-0.12-files') && checker.for('ember-cli-mocha', 'npm').satisfies('>=0.12.0')) {
if (fs.existsSync(this.path + '/mocha-0.12-files') && checker.for('ember-cli-mocha', 'npm').gte('0.12.0')) {
type = 'mocha-0.12';
} else {
type = 'mocha';
Expand Down

0 comments on commit 5aba2bb

Please sign in to comment.