Add MU support to blueprints test helpers#153
Add MU support to blueprints test helpers#153mixonic merged 1 commit intoember-cli:masterfrom dcyriller:ember-new-mu-support
Conversation
|
🤔 the tests failure doesn't seem to be related to the PR |
|
can you add tests for that? |
|
Sure, I'll do it. I have to figure out how to test |
|
Okay @Turbo87 I added a test for that. |
Turbo87
left a comment
There was a problem hiding this comment.
thanks for working on this @dcyriller! the change itself looks fine to me, but I'd prefer if we could extract the unrelated CI changes to a dedicated PR.
.travis.yml
Outdated
| - '10' | ||
| - '8' | ||
| - '6' | ||
| - '4' |
There was a problem hiding this comment.
can you extract these changes to a separate PR? if we bump the required Node versions then it's a breaking change and deserves a dedicated PR so that we can label it properly in the changelog.
|
Just wanted to drop by and say thanks to @dcyriller for doing this :) Looking forward to having MU blueprints for ember-data :D |
lib/ember-new.js
Outdated
| disableDependencyChecker: true | ||
| }; | ||
|
|
||
| process.env["MODULE_UNIFICATION"] = !!options.isModuleUnification; |
There was a problem hiding this comment.
Should be EMBER_CLI_MODULE_UNIFICATION I think 🤔...
There was a problem hiding this comment.
The tests I added are failing when updating to EMBER_CLI_MODULE_UNIFICATION. I'll investigate why.
There was a problem hiding this comment.
Okay, I get it! ember-cli/ember-cli#7869 is still on ember-cli's beta branch. Next ember-cli release, it should be good. :)
|
Had some discussion about this with @rwjblue at our meeting this morning. The generators need to test a matrix of things:
The test helper needs to have a way to test both of these things (flag enabled or not, type of directory). Edit: Upon some further discussion!
|
|
Ok @mixonic I'll update the PR to cover these different scenarios soon. Something remains unclear to me though. It looks to me that experiments are enabled on |
ember new test helper|
Taken individually, all tests are passing! 🎉 But because they are run on the same process, they fail when run in sequence. Indeed, the A solution would be to turn this object into a function. I implemented it in ember-cli/ember-cli#7961 What do you think @rwjblue? |
|
If using ember-cli canary is not too much of an issue, the PR is now ready for review! All tests are passing. |
|
An example of usage here: warp-drive-data/warp-drive#5558 |
| }, | ||
| "devDependencies": { | ||
| "ember-cli": "~2.16.0", | ||
| "ember-cli": "github:ember-cli/ember-cli", |
There was a problem hiding this comment.
Can this reference a specific version, or does it still need to be pinned to canary?
There was a problem hiding this comment.
It still needs to be pinned to canary for now, as it requires this ember-cli's PR ember-cli/ember-cli#7961 (not yet on beta branch).
There was a problem hiding this comment.
Chatted with @rwjblue and he is 👍 on this, at least as a temporary solution.
There was a problem hiding this comment.
Great! Thank you @mixonic. I'll update to a published ember-cli version when available.
There was a problem hiding this comment.
Do you think it could be released?
This PR unlocks the ability to do:
emberNew({ isModuleUnification: true })or
emberGenerateDestroy({ isModuleUnification: true })It would be especially usefull for testing blueprints in
ember.jsandember-datarepos + addons.