test: added tests for the ProgramStore

also added documentation

ref: N25B-428
This commit is contained in:
JGerla
2025-12-20 22:58:22 +01:00
parent faaf67138d
commit b10dbae488
4 changed files with 191 additions and 0 deletions

View File

@@ -2,6 +2,11 @@ import '@testing-library/jest-dom';
import { cleanup } from '@testing-library/react';
import useFlowStore from '../src/pages/VisProgPage/visualProgrammingUI/VisProgStores.tsx';
if (!globalThis.structuredClone) {
globalThis.structuredClone = (obj: any) => {
return JSON.parse(JSON.stringify(obj));
};
}
// To make sure that the tests are working, it's important that you are using
// this implementation of ResizeObserver and DOMMatrixReadOnly