Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
djhi committed Jan 9, 2025
1 parent 16a612a commit fc29e2a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test-setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,10 @@ global.Request = Request;

/** Mock scrollTo as it is not supported by JSDOM */
global.scrollTo = jest.fn();

/** Mock TextEncoder as it is not supported by JSDOM */
if (!global.TextEncoder || !global.TextDecoder) {
const { TextDecoder, TextEncoder } = require('node:util');
global.TextEncoder = TextEncoder;
global.TextDecoder = TextDecoder;
}

0 comments on commit fc29e2a

Please sign in to comment.