This commit is contained in:
2025-11-17 18:45:35 +01:00
parent 0f58e3bdff
commit 14d6f9aa73
7607 changed files with 1969407 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
// jest-dom adds custom jest matchers for asserting on DOM nodes.
// allows you to do things like:
// expect(element).toHaveTextContent(/react/i)
// learn more: https://github.com/testing-library/jest-dom
import "@testing-library/jest-dom";
// import matchMediaPolyfill from "mq-polyfill";
// matchMediaPolyfill(window);
// // implementation of window.resizeTo for dispatching event
// window.resizeTo = function resizeTo(width, height) {
// Object.assign(this, {
// innerWidth: width,
// innerHeight: height,
// outerWidth: width,
// outerHeight: height,
// }).dispatchEvent(new this.Event("resize"));
// };