mirror of
https://github.com/hanzoai/desktop.git
synced 2026-10-30 14:58:42 +00:00
20 lines
450 B
TypeScript
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);
|