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
{{ message }}
This repository has been archived by the owner on Jun 18, 2018. It is now read-only.
We're using the test backend and simulating dragging and dropping with the provided functions, simulateBeginDrag, simulateDrop, simulateDragEnd, etc. It becomes immediately apparent, however, that the same object is in effect across multiple tests, due to errors like cannot call beginDrag while dragging popping up only once a preceding test fails in the middle. Here's the code we're using to get the backend from our Component:
import { mount } from 'enzyme';
wrapper = mount(<MyComponent />)
backend = wrapper.instance().getManager().getBackend();
Are we using this wrong, is there a bad interaction with Enzyme, or is there legitimate test pollution going on here with static variables?
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
We're using the test backend and simulating dragging and dropping with the provided functions,
simulateBeginDrag
,simulateDrop
,simulateDragEnd
, etc. It becomes immediately apparent, however, that the same object is in effect across multiple tests, due to errors likecannot call beginDrag while dragging
popping up only once a preceding test fails in the middle. Here's the code we're using to get the backend from our Component:Are we using this wrong, is there a bad interaction with Enzyme, or is there legitimate test pollution going on here with static variables?
The text was updated successfully, but these errors were encountered: