opencode/packages/nav-menus/test/happydom.ts
David Hill e45af15e84
feat(site): add the shared product and logo menus to every nav (#62654)
Co-authored-by: Adam <2363879+adamdotdevin@users.noreply.github.com>
2026-11-07 22:06:29 +00:00

8 lines
298 B
TypeScript

import { GlobalRegistrator } from "@happy-dom/global-registrator"
GlobalRegistrator.register()
// happy-dom has no Web Animations: the menus' motion runs to its end at once.
Element.prototype.animate = function () {
return { finished: Promise.resolve(), cancel() {} } as unknown as Animation
}