From 58fe25acf43f42fa784cfa72b218ed17581c4a27 Mon Sep 17 00:00:00 2001 From: Maksim Ivanov Date: Fri, 6 Sep 2024 10:28:07 +0300 Subject: [PATCH] chore: drop redundant mock (#8849) --- projects/testing/setup-jest/index.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/projects/testing/setup-jest/index.ts b/projects/testing/setup-jest/index.ts index 0024531f6dfb..d75b148a3301 100644 --- a/projects/testing/setup-jest/index.ts +++ b/projects/testing/setup-jest/index.ts @@ -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(() => ({