mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-23 11:29:54 +00:00
* chore(deps): update happy-dom to ^21.0.4 happy-dom 21 turns off iframe page loading by default. The player and sdk test environments load same-origin iframe documents, so they opt back in through their vitest happyDOM settings. — Clippy Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test: adapt studio and cli tests to happy-dom 21 Studio tests load same-origin iframe documents, so they opt back in to iframe page loading. happy-dom 21 adds Element.checkVisibility, which reads the real styles rather than the mocked getComputedStyle, so the motion-signature decoys are hidden in the DOM as well as in the mock. — Clippy Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test(studio): fix remaining studio tests on happy-dom 21 - happy-dom now implements getAnimations, so Base UI deferred popup unmounts to animation frames; test setup sets Base UI's BASE_UI_ANIMATIONS_DISABLED, matching the old synchronous behaviour. - happy-dom 21 drops vendor-prefixed properties it does not list, so the -webkit-text-fill-color tests move to a jsdom file with shared helpers. - The scaled-iframe drag test builds its own Window, which now needs enableIframePageLoading. - NLEPreview.slowBoot's per-file environment options never applied the disable setting and now wiped the config's iframe opt-in; drop them. — Clippy Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test(studio): inline fill-test helpers instead of a shared module Keeps the moved -webkit-text-fill-color tests self-contained and leaves the original test file's helpers untouched. — Clippy Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test(studio): drop the Base UI flag comment for the comment ratchet — Clippy Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
12 lines
254 B
TypeScript
12 lines
254 B
TypeScript
import { defineConfig } from "vitest/config";
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
include: ["src/**/*.test.ts"],
|
|
environment: "node",
|
|
environmentOptions: {
|
|
happyDOM: { settings: { enableIframePageLoading: true } },
|
|
},
|
|
},
|
|
});
|