Skip to content

Commit

Permalink
Remove react-sizeme from test
Browse files Browse the repository at this point in the history
  • Loading branch information
jjtimmons committed Oct 22, 2022
1 parent 0bad8cf commit abc2aa6
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/jest.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
const sizeMe = require("react-sizeme");
sizeMe.noPlaceholders = true;

global.TextEncoder = require("util").TextEncoder;

window.ResizeObserver = jest.fn().mockImplementation(() => ({
observe: jest.fn(),
unobserve: jest.fn(),
disconnect: jest.fn(),
}));

0 comments on commit abc2aa6

Please sign in to comment.