Skip to content
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

Simplify testSelector() import #43

Merged
merged 1 commit into from
Jan 11, 2017
Merged

Conversation

Turbo87
Copy link
Collaborator

@Turbo87 Turbo87 commented Jan 11, 2017

import testSelector from 'ember-test-selectors';

instead of

import testSelector from '<app-name>/tests/helpers/ember-test-selectors';

The old import still works, but displays a deprecation warning. Due to the fact that our addon and app folders are only packaged in testing mode we don't have to worry about including testing code in the production build.

id: 'ember-test-selectors.test-selector-import',
until: '0.1.0',
url: 'https://github.com/simplabs/ember-test-selectors#test-helpers',
});
Copy link
Member

Choose a reason for hiding this comment

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

As we're pre 1.0.0 we can (and I think should for simplicity's sake) just remove this.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

so far we haven't introduced any breaking changes and removing this would be a breaking change without any deprecation first. I'm not a fan of breaking API without deprecations if deprecations are possible in a simple way.

Copy link
Member

Choose a reason for hiding this comment

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

OK, cool - I just want to make sure we get rid of this until 1.0.0.

@pangratz pangratz merged commit f0f8c38 into mainmatter:master Jan 11, 2017
@Turbo87 Turbo87 deleted the helper branch January 11, 2017 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants