Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion packages/layout/test/layout.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,8 @@ describe('layoutDiagram', () => {
const groups = Array.from({ length: 8 }, (_, i) => ({ id: `g${i}`, label: `G${i}` }));
const started = performance.now();
const out = await layoutDiagram(draft({ direction: 'RIGHT', groups, nodes, edges }));
expect(performance.now() - started).toBeLessThan(4_000);
// CI runners are several times slower than a laptop (3-5s there); the old multi-pass path is still well past this.
expect(performance.now() - started).toBeLessThan(15_000);
// Wrapped rather than one long strip, and every card placed apart from the others.
expect(out.bounds.width).toBeLessThan(out.bounds.height * 4);
const rects = Object.values(out.nodes);
Expand Down
Loading