Migrated CopyToClipboard test to react testing library

This commit is contained in:
Alejandro Celaya
2022-06-10 20:29:42 +02:00
parent 72f790b28c
commit 44a93ae556
3 changed files with 43 additions and 18 deletions

View File

@@ -4,4 +4,5 @@ import ResizeObserver from 'resize-observer-polyfill';
(global as any).ResizeObserver = ResizeObserver;
(global as any).scrollTo = () => {};
(global as any).prompt = () => {};
(global as any).matchMedia = (media: string) => ({ matches: false, media });