do not include constraints in tests

This commit is contained in:
Ryan Di
2025-05-09 16:40:35 +10:00
parent ffbd4a5dc8
commit f9723e2d19
3 changed files with 63 additions and 933 deletions

View File

@@ -1015,7 +1015,7 @@ const ExcalidrawWrapper = () => {
lockZoom: false,
viewportZoomFactor: 0.7,
overscrollAllowance: 0.5,
enabled: true,
enabled: !isTestEnv(),
...storedConstraints,
};
});
@@ -1153,7 +1153,7 @@ const ExcalidrawWrapper = () => {
}
}}
>
{excalidrawAPI && (
{excalidrawAPI && !isTestEnv() && (
<ConstraintsSettings
excalidrawAPI={excalidrawAPI}
initialConstraints={constraints}