Skip to content
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.

Fixes the useLintTree: false scenario #87

Merged
merged 1 commit into from Nov 10, 2015
Merged

Fixes the useLintTree: false scenario #87

merged 1 commit into from Nov 10, 2015

Conversation

ghost
Copy link

@ghost ghost commented Nov 6, 2015

Addresses #83
Tested on ember-cli 0.2.7 & 1.13.8 & master

Tested on ember-cli 0.2.7, 1.13.8 & 1.13.8-master-1bd51615dc
@@ -128,7 +128,8 @@ module.exports = {
lintTree: function(type, tree) {
// Skip if useLintTree === false.
if (this.options['ember-cli-qunit'] && this.options['ember-cli-qunit'].useLintTree === false) {
return tree;
// Fakes an empty broccoli tree
return { inputTree: tree, rebuild: function() { return []; } };
Copy link
Member

Choose a reason for hiding this comment

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

You should be able to return false here if using Ember-CLI master.

Copy link
Author

Choose a reason for hiding this comment

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

That would be less awesome towards people not yet able to migrate to the latest version of Ember-CLI.

Copy link
Member

Choose a reason for hiding this comment

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

Very true. Forgot about that.

Copy link
Member

Choose a reason for hiding this comment

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

This is compat with ember-cli 0.2.2+, but will not work for Broccoli 1.0.0 (where the .rebuild API is deprecated).

We will need to bump minors and just return false; at some point to avoid deprecations there (definitely fine to do at a later date when we use Broccoli 1.0.0 in ember-cli).

@topaxi
Copy link

topaxi commented Nov 10, 2015

Is anything blocking this PR?

@ghost
Copy link
Author

ghost commented Nov 10, 2015

Don't think so. Probably just @rwjblue being tied up with other stuff?

rwjblue added a commit that referenced this pull request Nov 10, 2015
Fixes the useLintTree: false scenario
@rwjblue rwjblue merged commit 3e7580c into ember-cli:master Nov 10, 2015
@ghost ghost deleted the fix-use-lint-tree-false branch November 10, 2015 14:18
@rwjblue
Copy link
Member

rwjblue commented Nov 10, 2015

@martndemus - Would you mind updating ember-cli-mocha to work similarly?

@ghost
Copy link
Author

ghost commented Nov 10, 2015

@rwjblue Sure :)

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

Successfully merging this pull request may close these issues.

4 participants