Skip to content
This repository was archived by the owner on Jun 18, 2018. It is now read-only.
This repository was archived by the owner on Jun 18, 2018. It is now read-only.

Test pollution while using TestBackend #3

Open
@comatose-turtle

Description

@comatose-turtle

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions