-
-
Notifications
You must be signed in to change notification settings - Fork 149
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
[WIP] Chore/update ember-cli to 3.0.0 #177
Conversation
f59b34f
to
a6f6755
Compare
dab75e2
to
90dc199
Compare
90dc199
to
81c6f42
Compare
(looks like 3 are still failing)
Thanks for taking on this task. Let us know when you’d like us to have a look 👍 |
@jgwhite Unfortunately I ran out of time to finish this (underestimated my lack of experience with ember testing, especially the new API). Could you help me figure out how to import / reference the custom test helpers this addon defines ( There were also some things that looked just plain wrong in the tests. For example, the test to check that 'isDragging' / 'isDropping' get set to false (during |
I think, due to the way the import { drag, reorder } from 'dummy/tests/helpers/ember-sortable';
Wow, yeah. That test is super, super old and I’m not surprised it broke. Your solution sounds good to me. You’re right the tests could do with some spring cleaning. Are you attending EmberConf? |
Sorry, that should have been: import { drag, reorder } from 'dummy/tests/helpers/ember-sortable/test-helpers'; Which, now that I look at it, is pretty verbose. Wonder if we can make the path shorter? |
Unfortunately, I won't be attending EmberConf (in person) this year, though I do hope to go next year. This is a busy month for me, though I do intend to spend a little time working on this again next week. |
@jacobq I was able to resolve the unit tests w/ the new testing system like so: https://github.com/jgwhite/ember-sortable/blob/8d47a522aeed0bb37622ea9125c47dc3f0bfe2c2/tests/unit/components/sortable-item-mixin-test.js Essentially, since the unit test requires a DOM element: hooks.beforeEach(async function() {
const mockComponent = Component.extend(SortableItemMixin, {
classNames: ['test-mock-cmpt'],
didInsertElement() {
this._super()
subject = this
}
})
await run(async () => {
this.owner.register('component:test-mock', mockComponent)
group = MockGroup.create();
this.set('group', group)
this.set('rendered', true)
await render(hbs`{{#if rendered}}{{test-mock group=group}}{{/if}}`)
// run(() => subject.set('group', group))
});
}); Render the mixin in an empty component. In the didInsertElement method on the component def, simply set a local variable I opened a separate PR for upgrading to 3.4.2. Let me know if you have any thoughts. |
@validkeys Hey, thanks for working on this! I've got another ember-cli/deps update chore PR to do later this month so will plan to look at this again too. I suspect that another LTS release of Ember will be coming soon too, so so maybe we'll get two birds with one stone. |
This project is now being maintained by the team at @heroku. To get the project healthy and maintainable again, we’re doing a bit of spring cleaning of older issues and pull requests. This pull request seems like it will be superseded by subsequent PRs so we’re closing it. Thank you for all the hard work you put in, the ideas and solutions will live on in other PRs. Please feel free to re-open if you’d like to resume work on it. |
@jgwhite Oops, I forgot all about this! No problem. I'm glad someone is tidying up, and the updates will probably make this irrelevant / unnecessary anyway. |
No description provided.