Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUGFIX beta] Add blueprints for "ember-cli-mocha >= 0.12.0" #4691

Merged
merged 1 commit into from
Dec 2, 2016

Conversation

Turbo87
Copy link
Member

@Turbo87 Turbo87 commented Dec 2, 2016

Resolves #4689

@Turbo87
Copy link
Member Author

Turbo87 commented Dec 2, 2016

discovered a small issue with this, do not merge for now... 😞

@@ -12,7 +14,12 @@ module.exports = function(blueprint) {
if ('ember-cli-qunit' in dependencies) {
type = 'qunit';
} else if ('ember-cli-mocha' in dependencies) {
type = 'mocha';
var checker = new VersionChecker({ project: this.project });
if (fs.existsSync(this.path + '/mocha-0.12-files') && checker.for('ember-cli-mocha', 'npm').satisfies('>=0.12.0')) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is the check for /mocha-0.12-files necessary`? Shouldn't this be the case when the addon of this version is installed?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pangratz that check allows us to have some blueprints that care about the Mocha version and others that don't. This is not technically needed in this case, but I've reused the code from emberjs/ember.js#14670 to reduce differences.

@pangratz pangratz merged commit bc9a659 into emberjs:master Dec 2, 2016
@pangratz
Copy link
Member

pangratz commented Dec 2, 2016

🚀 🎉 thanks a bunch @Turbo87

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants