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

Use ember-qunit as an NPM dependency. #92

Merged
merged 2 commits into from
Dec 13, 2015

Conversation

rwjblue
Copy link
Member

@rwjblue rwjblue commented Dec 12, 2015

This removes ember-qunit as a bower dependency (in favor of using NPM
directly).

Currently, this adds ember-qunit, ember-test-helpers, and klassy
(required by ember-test-helpers) to vendor.js. That is slightly
unfortunate, as ideally these would be added to test-support.js
instead, however there is no mechanism other than app.import in
ember-cli today (1.13.x timeframe) to handle this.

IMO, we should add a addon-test-support tree, that appends to
test-support.js by default. This would allow addons to provide test
helpers much simpler than we can today.

@mmun
Copy link
Member

mmun commented Dec 12, 2015

👍 This would give us more reason to solve the addon test support issue :P

@rwjblue
Copy link
Member Author

rwjblue commented Dec 12, 2015

Ya, agree. I'm looking into that in ember-cli (possibly for 2.x).

This removes ember-qunit as a bower dependency (in favor of using NPM
directly).

Currently, this uses ember-cli's new `treeForAddonTestSupport` hook to
provide ember-qunit, ember-test-helpers, and klassy for concatenation
into `assets/test-support.js`.  This will either require a backwards
compat shim (for older versions of Ember CLI) or it will depend upon the
newer Ember CLI version after that new hook is added.
@rwjblue rwjblue force-pushed the add-ember-qunit-via-npm branch from ddc5db4 to 67d2598 Compare December 13, 2015 02:00
@rwjblue
Copy link
Member Author

rwjblue commented Dec 13, 2015

Updated to utilize treeForAddonTestSupport which is being proposed upstream in ember-cli/ember-cli#5205.

Ultimately, this will either require a backwards compat shim (for older versions of Ember CLI) or it will depend upon the newer Ember CLI version after that new hook is added (and require a major version bump).

@rwjblue
Copy link
Member Author

rwjblue commented Dec 13, 2015

ember-cli/ember-cli#5205 is merged upstream but will not be available to consumers until [email protected] ships.

I have updated this PR to enable backwards compat with older Ember CLI versions so that this is not a breaking change. We can remove the backwards compat shim layer, when we bump major versions.

@rwjblue rwjblue changed the title [WIP] Use ember-qunit as an NPM dependency. Use ember-qunit as an NPM dependency. Dec 13, 2015
rwjblue added a commit that referenced this pull request Dec 13, 2015
Use ember-qunit as an NPM dependency.
@rwjblue rwjblue merged commit 86769d8 into ember-cli:master Dec 13, 2015
@rwjblue rwjblue deleted the add-ember-qunit-via-npm branch December 13, 2015 20:58
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.

2 participants