Skip to content

Commit 093af04

Browse files
committed
test(core): stabilize orchestration pause-resume assertion
1 parent 3ffee89 commit 093af04

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/core/src/widgets/__tests__/composition.animationOrchestration.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,9 @@ describe("composition animation hooks - orchestration", () => {
216216
const next = h.render((hooks) => useParallel(hooks, running));
217217
render = next;
218218
h.runPending(next.pendingEffects);
219-
return Math.abs((next.result[0]?.value ?? 0) - 10) <= 0.2;
219+
const entry = next.result[0];
220+
if (!entry) return false;
221+
return Math.abs(entry.value - 10) <= 0.2 && entry.isAnimating === false;
220222
});
221223

222224
assert.equal(render.result[0]?.isAnimating, false);

0 commit comments

Comments
 (0)