mirror of
https://github.com/LukeHagar/unicorn-utterances.git
synced 2025-12-06 04:21:55 +00:00
27 lines
547 B
TypeScript
27 lines
547 B
TypeScript
import React from "react";
|
|
import "@testing-library/jest-dom/extend-expect";
|
|
import "jest-axe/extend-expect";
|
|
import "../../__mocks__/modules";
|
|
|
|
const originConsoleErr = console.error;
|
|
console.error = (message?: any, ...optionalParams: any[]) => {
|
|
if (/Not implemented: navigation/.exec(message)) return;
|
|
originConsoleErr(message, ...optionalParams);
|
|
};
|
|
|
|
(global as any).IntersectionObserver = class IntersectionObserver {
|
|
constructor() {}
|
|
|
|
observe() {
|
|
return null;
|
|
}
|
|
|
|
disconnect() {
|
|
return null;
|
|
}
|
|
|
|
unobserve() {
|
|
return null;
|
|
}
|
|
};
|