ember-drag-drop
ember-drag-drop copied to clipboard
can't import test helper
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' }
Maybe the addon-test-helpers
directory should be used instead ?
https://ember-cli.com/extending/#addon-project-structure
Looks like your import is off. it should be import { drag } from 'ember-calendar/tests/helpers/ember-drag-drop';