mirror of
https://github.com/LukeHagar/unicorn-utterances.git
synced 2025-12-06 04:21:55 +00:00
28 lines
569 B
JavaScript
28 lines
569 B
JavaScript
// Optional: configure or set up a testing framework before each test.
|
|
// If you delete this file, remove `setupFilesAfterEnv` from `jest.config.js`
|
|
|
|
// Used for __tests__/testing-library.js
|
|
// Learn more: https://github.com/testing-library/jest-dom
|
|
require("whatwg-fetch");
|
|
require("@testing-library/jest-dom/jest-globals");
|
|
|
|
global.plausible = null;
|
|
|
|
global.IntersectionObserver = class IntersectionObserver {
|
|
constructor() {}
|
|
|
|
observe() {
|
|
return null;
|
|
}
|
|
|
|
disconnect() {
|
|
return null;
|
|
}
|
|
|
|
unobserve() {
|
|
return null;
|
|
}
|
|
};
|
|
|
|
global.React = require("preact");
|