Release ForgeFlow 0.8.6 premium code canvas

This commit is contained in:
NuklearRabbit
2026-07-26 04:07:06 +02:00
parent 1310d2e5a7
commit 70840839f8
10 changed files with 321 additions and 33 deletions
+17
View File
@@ -226,3 +226,20 @@ test("interactive project illustrations are semantic, responsive and motion-safe
assert.match(styles, /prefers-reduced-motion/);
assert.match(styles, /transform: none !important/);
});
test("the diff canvas uses a contextual and motion-safe code illustration", async () => {
const renderer = await readFile(
new URL("../src/renderer/app.js", import.meta.url),
"utf8",
);
const styles = await readFile(
new URL("../src/renderer/styles.css", import.meta.url),
"utf8",
);
assert.match(renderer, /function diffAtmosphere/);
assert.match(renderer, /data-diff-atmosphere/);
assert.match(renderer, /--diff-tilt-x/);
assert.match(styles, /\.diff-atmosphere/);
assert.match(styles, /@keyframes code-packet-travel/);
assert.match(styles, /prefers-reduced-motion/);
});