test: added test for onConnect event

ref: N25B-114
This commit is contained in:
JGerla
2025-10-22 16:30:24 +02:00
parent 3bd1aa99e3
commit 8513be5a56
2 changed files with 33 additions and 4 deletions

View File

@@ -63,8 +63,7 @@ export const mockReactFlow = () => {
});
};
afterEach(() => {
cleanup();
useFlowStore.setState({ nodes: [], edges: [] });
});
beforeEach(() => { useFlowStore.setState({ nodes: [], edges: [] }); })
afterEach(() => { cleanup(); });