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', () => ({
15 enUSLocale: undefined,
18 vi.mock('@proton/shared/lib/pow/wasmWorkerWrapper.ts', () => ({
22 vi.mock('@proton/shared/lib/pow/pbkdfWorkerWrapper.ts', () => ({