mirror of
https://github.com/LukeHagar/unicorn-utterances.git
synced 2025-12-10 04:22:06 +00:00
chore: fix tests
This commit is contained in:
23
__mocks__/jest.setup.js
Normal file
23
__mocks__/jest.setup.js
Normal 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;
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user