gitbutler/apps/desktop/vitest-setup.js

10 lines
290 B
JavaScript
Raw Normal View History

2024-08-21 02:29:04 +03:00
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: () => {}
});