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

fixes #46 - Warns on usage of Qunit which clashes with Mocha tests. #47

Merged
merged 1 commit into from
May 18, 2015

Conversation

jonathanKingston
Copy link
Member

No description provided.

@@ -76,6 +76,13 @@ module.exports = {
this.jshintrc = app.options.jshintrc;
},

postBuild: function () {
Copy link
Member

Choose a reason for hiding this comment

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

Maybe this belongs in init?

Copy link
Member Author

Choose a reason for hiding this comment

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

I thought that but I was getting init called twice, unless you are happy with me exiting after error?

Copy link
Member

Choose a reason for hiding this comment

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

I think that having both ember-cli-qunit AND ember-cli-mocha is an error condition and continuing is unlikely to go well...

We can also remove ember-cli-qunit in the blueprint to make this even more unusual of a case...

Copy link
Member Author

Choose a reason for hiding this comment

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

Cool happy with both of those suggestions.

Am I right in thinking there is no current API for removing packages?

Copy link
Member

Choose a reason for hiding this comment

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

yes, I do not think one exists, but I'm not opposed to it either...

Copy link
Member Author

Choose a reason for hiding this comment

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

Cool, that is something I have wanted for this exact use-case so happy you are on board. I see the task exists so will look into it.

Copy link
Member Author

Choose a reason for hiding this comment

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

Also in init with a process.exit(1); causes it to not be able to be installed in the first place.

@jonathanKingston
Copy link
Member Author

Doesn't depend upon ember-cli/ember-cli#3841 but certainly would be better to go with it.

@jonathanKingston
Copy link
Member Author

@rwjblue API added, however I am considering creating a RFC for removePackageFromProject too which calls a 'uninstall' hook so that for example qunit can clean itself up when ember-cli-mocha wants it's removal.

@dgeb
Copy link
Member

dgeb commented May 13, 2015

@jonathanKingston this looks great - thanks for your work here and in ember-cli!

This seems ready to merge at this point (because of the check for removePackageFromProject in ember-cli) but let me know if you consider anything to still be a WIP.

@jonathanKingston
Copy link
Member Author

@dgeb this could merge certainly as you say because it checks if it can run; however I think my suggestion of a removeAddonFromProject would be better in the long term. I'll raise an RFC tomorrow so we can keep track of it.

Thanks

@jonathanKingston
Copy link
Member Author

@dgeb RFC raised: ember-cli/rfcs#13

Thanks

dgeb added a commit that referenced this pull request May 18, 2015
fixes #46 - Warns on usage of Qunit which clashes with Mocha tests.
@dgeb dgeb merged commit 1be470d into ember-cli:master May 18, 2015
@dgeb
Copy link
Member

dgeb commented May 18, 2015

@jonathanKingston thank you! Let's see where that RFC goes and refine our approach as possible. :shipit:

@jonathanKingston jonathanKingston deleted the warn-on-qunit-usage branch May 18, 2015 17:59
@jonathanKingston
Copy link
Member Author

👍 thanks @dgeb

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

Successfully merging this pull request may close these issues.

4 participants