[MAILWEB-5981] Reduce redundancy by replacing the grayed out "Trash" button with...
[ProtonMail-WebClient.git] / packages / wallet / vitest.setup.ts
blob4fa1bbfebe4a0eef79814979fb7422b691de52b1
1 import '@testing-library/jest-dom';
2 import { cleanup } from '@testing-library/react';
3 import { vi } from 'vitest';
5 import '@proton/testing/lib/vitest/mockMatchMedia';
6 import '@proton/testing/lib/vitest/mockUnleash';
8 afterEach(cleanup); // TODO double check if needed; see https://github.com/vitest-dev/vitest/issues/1430
9 // Silence warnings on expect to throw https://github.com/testing-library/react-testing-library/issues/157
10 // console.error = () => {};
11 // console.warn = () => {};
13 vi.mock('@proton/shared/lib/i18n/dateFnLocales', () => ({
14     __esModule: true,
15     enUSLocale: undefined,
16 }));
18 vi.mock('@proton/shared/lib/pow/wasmWorkerWrapper.ts', () => ({
19     __esModule: true,
20 }));
22 vi.mock('@proton/shared/lib/pow/pbkdfWorkerWrapper.ts', () => ({
23     __esModule: true,
24 }));