chore: updated setupFlowTests.ts to properly handle resetting of the flowState for each test
ref: N25B-114
This commit is contained in:
@@ -63,7 +63,20 @@ export const mockReactFlow = () => {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
beforeEach(() => { useFlowStore.setState({ nodes: [], edges: [] }); });
|
beforeAll(() => {
|
||||||
|
useFlowStore.setState({
|
||||||
|
nodes: [],
|
||||||
|
edges: [],
|
||||||
|
edgeReconnectSuccessful: true
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
afterEach(() => { cleanup(); });
|
afterEach(() => {
|
||||||
|
cleanup();
|
||||||
|
useFlowStore.setState({
|
||||||
|
nodes: [],
|
||||||
|
edges: [],
|
||||||
|
edgeReconnectSuccessful: true
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user