Skip to content

Commit

Permalink
chore: drop redundant mock (#8849)
Browse files Browse the repository at this point in the history
  • Loading branch information
splincode authored Sep 6, 2024
1 parent 6eabe3a commit 58fe25a
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions projects/testing/setup-jest/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ const {TextEncoder: TextEncoderMock, TextDecoder: TextDecoderMock} = require('no
global.TextEncoder = TextEncoderMock;
global.TextDecoder = TextDecoderMock;

// @ts-ignore
global.document.execCommand = () => {};

// you can also pass the mock implementation
// to jest.fn as an argument
(global.window as any).IntersectionObserver = jest.fn(() => ({
Expand Down

0 comments on commit 58fe25a

Please sign in to comment.