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

can't import test helper #150

Open
mcfiredrill opened this issue Dec 3, 2018 · 2 comments
Open

can't import test helper #150

mcfiredrill opened this issue Dec 3, 2018 · 2 comments

Comments

@mcfiredrill
Copy link
Contributor

mcfiredrill commented Dec 3, 2018

Is this the correct syntax? I'm trying to import the test helper in an addon (ember-calendar).

import { drag } from 'ember-calendar/tests/helpers/drag-drop';

This doesn't seem to work:

              text: 'Uncaught Error: \nError: Could not find module `ember-calendar/tests/helpers/drag-drop` imported from `ember-calendar/test-helpers/all` at http://localhost:7357/assets/tests.js, line 3087\n' }
@mcfiredrill
Copy link
Contributor Author

Maybe the addon-test-helpers directory should be used instead ?
https://ember-cli.com/extending/#addon-project-structure

@dgavey
Copy link
Collaborator

dgavey commented Dec 3, 2018

Looks like your import is off. it should be import { drag } from 'ember-calendar/tests/helpers/ember-drag-drop';

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

No branches or pull requests

2 participants