Files
CollabTable/shared/packages/web-ui/tests/setup.ts
T
Gabriel20xx 0ff94f9b10
Lint / Lint (push) Successful in 32s
Docker / Docker Build & Push (push) Failing after 2m22s
Tests / Go backend (push) Failing after 1m2s
Tests / Dashboard checks (push) Failing after 35s
ci: expand shared package validation and test coverage
- Add lint, formatting, vet, and publish workflow checks
- Run Go database tests with PostgreSQL and add Java tests
- Make consumer sync opt-in; update docs and Go dependency
2026-10-19 21:46:52 +00:00

20 lines
639 B
TypeScript

// jsdom has no Web Animations API, which Svelte's transitions call. This stand-in finishes at once,
// so an element that leaves with a transition is removed straight away.
if (typeof Element.prototype.animate !== 'function') {
Element.prototype.animate = function animate(): Animation {
const animation = {
currentTime: 0,
onfinish: null as (() => void) | null,
cancel() {},
finish() {
animation.onfinish?.();
},
pause() {},
play() {},
finished: Promise.resolve(),
};
queueMicrotask(() => animation.onfinish?.());
return animation as unknown as Animation;
};
}