import { readFileSync } from "node:fs"; import { join } from "node:path"; import { describe, expect, it } from "vitest"; describe("Streamdown fullscreen table", () => { it("disables inherited token animations only inside the fullscreen copy", () => { const styles = readFileSync(join(process.cwd(), "app/globals.css"), "utf8"); expect(styles).toMatch( /\[data-streamdown="table-fullscreen"\] \[data-sd-animate\] \{\s*animation: none;\s*filter: none;\s*opacity: 1;\s*transform: none;\s*\}/ ); }); });