ember-drag-drop icon indicating copy to clipboard operation
ember-drag-drop copied to clipboard

can't import test helper

Open mcfiredrill opened this issue 6 years ago • 2 comments

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 avatar Dec 03 '18 05:12 mcfiredrill

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

mcfiredrill avatar Dec 03 '18 06:12 mcfiredrill

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

dgavey avatar Dec 03 '18 14:12 dgavey