You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I installed the package with ember install ember-gestures, then added recognizers: 'swipe' to my component as well as a swipeLeft method. The behavior works fine in development, but when I try to unit test the component I get this error:
ember-gestures/recognizers/swipe was not found. You can scaffold this recognizer with 'ember g recognizer swipe'
Same thing happens if I use ember generator to generate a swipe recognizer using the config in this repo:
which may have never worked in tests... try using 0.6.0 as there was a big change in 1.0 and 1.1.0 - also if u could output your ember version and ember-qunit version, that would help. If you use a component rendering test, for example, if it works in development, it will work there. for the older component tests, unit or integration: true, style, we may need to debug.
if your using ember 3.x, make sure to use ember 3.2 as well, fyi. If not, let me know what version you are using.
thanks for reporting the issue, i help out on this repo, but i don't use this addon (i use pieces of it, manually) but not the whole thing itself, so sorry i don't have a better answer atm.
we can work through it though, just let me know more about your deps :)
package.json
I installed the package with
ember install ember-gestures
, then addedrecognizers: 'swipe'
to my component as well as aswipeLeft
method. The behavior works fine in development, but when I try to unit test the component I get this error:Same thing happens if I use ember generator to generate a
swipe
recognizer using the config in this repo:Do I need to do any more special component setup in my unit test outside of the
setupComponentTest
block?The text was updated successfully, but these errors were encountered: