Renacer Social, the app

setupTests.ts 454B

12345678910111213141516
  1. // jest-dom adds custom jest matchers for asserting on DOM nodes.
  2. // allows you to do things like:
  3. // expect(element).toHaveTextContent(/react/i)
  4. // learn more: https://github.com/testing-library/jest-dom
  5. import "@testing-library/jest-dom/extend-expect";
  6. // Mock matchmedia
  7. window.matchMedia =
  8. window.matchMedia ||
  9. function () {
  10. return {
  11. matches: false,
  12. addListener: function () {},
  13. removeListener: function () {},
  14. };
  15. };