-
Notifications
You must be signed in to change notification settings - Fork 15
fix(core): correctly render badge recipe background/text #271
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
98c25a9
627a9b1
3c5e448
4eea133
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -200,11 +200,14 @@ describe("composition animation hooks - orchestration", () => { | |
| pausedValue = render.result[0]?.value ?? 0; | ||
| h.runPending(render.pendingEffects); | ||
|
|
||
| await sleep(80); | ||
| render = h.render((hooks) => useParallel(hooks, paused)); | ||
| h.runPending(render.pendingEffects); | ||
| assert.ok(Math.abs((render.result[0]?.value ?? 0) - pausedValue) <= 0.1); | ||
| assert.equal(render.result[0]?.isAnimating, false); | ||
| await waitFor(() => { | ||
| const next = h.render((hooks) => useParallel(hooks, paused)); | ||
| render = next; | ||
| h.runPending(next.pendingEffects); | ||
| const entry = next.result[0]; | ||
| if (!entry) return false; | ||
| return Math.abs(entry.value - pausedValue) <= 0.1 && entry.isAnimating === false; | ||
| }); | ||
|
Comment on lines
+203
to
+210
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Keep a real paused interval in this regression test. This only proves that one render produced a paused snapshot. It no longer verifies that progress stays frozen over time while paused, so a regression that still advances for a few frames can pass here. Suggested change await waitFor(() => {
const next = h.render((hooks) => useParallel(hooks, paused));
render = next;
h.runPending(next.pendingEffects);
const entry = next.result[0];
if (!entry) return false;
return Math.abs(entry.value - pausedValue) <= 0.1 && entry.isAnimating === false;
});
+
+ await sleep(80);
+ render = h.render((hooks) => useParallel(hooks, paused));
+ h.runPending(render.pendingEffects);
+ assert.ok(Math.abs((render.result[0]?.value ?? 0) - pausedValue) <= 0.1);
+ assert.equal(render.result[0]?.isAnimating, false);Based on learnings, "Read target file tests before changing behavior; expected behavior and edge cases are documented in test files". 🤖 Prompt for AI Agents |
||
|
|
||
| render = h.render((hooks) => useParallel(hooks, running)); | ||
| h.runPending(render.pendingEffects); | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.