chore: fix tests

This commit is contained in:
Corbin Crutchley
2021-12-26 17:33:21 -08:00
parent 7eb7eeba17
commit 6e52c81f4b
6 changed files with 107 additions and 27 deletions

23
__mocks__/jest.setup.js Normal file
View File

@@ -0,0 +1,23 @@
// 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("@testing-library/jest-dom/extend-expect");
require("./modules");
global.IntersectionObserver = class IntersectionObserver {
constructor() {}
observe() {
return null;
}
disconnect() {
return null;
}
unobserve() {
return null;
}
};