Files
desktop/libs/hanzo-message-ts/scripts/setupTests.ts
2025-10-19 17:18:05 -07:00

20 lines
450 B
TypeScript

import * as matchers from '@testing-library/jest-dom/matchers';
import { expect } from 'vitest';
// Mock matchmedia
window.matchMedia =
window.matchMedia ||
function () {
return {
matches: false,
addListener: function () {
console.log('method in mock, doing nothing...');
},
removeListener: function () {
console.log('method in mock, doing nothing...');
},
};
};
expect.extend(matchers);