gitbutler/apps/desktop/vitest-setup.js
2024-08-21 12:40:08 +01:00

10 lines
290 B
JavaScript

import '@testing-library/jest-dom/vitest';
// https://github.com/testing-library/svelte-testing-library/issues/284#issuecomment-2082726160
Element.prototype.animate = () => ({
// @ts-expect-error `Animation` execpted
finished: Promise.resolve(),
cancel: () => {},
finish: () => {}
});