From 83f530991be3b23d339985daf3c14b224ee5a30d Mon Sep 17 00:00:00 2001 From: Hendrik Liebau Date: Fri, 29 Nov 2024 16:12:13 +0100 Subject: [PATCH] Revert "Pin version of `nwsapi` (revert later) (#73351)" This reverts commit eaf63e717b55733d22297c0e444f26473c9ff899. --- test/production/jest/index.test.ts | 4 ---- test/production/jest/new-link-behavior.test.ts | 4 ---- .../jest/next-image-preload/next-image-preload.test.ts | 4 ---- .../remove-react-properties-jest.test.ts | 4 ---- 4 files changed, 16 deletions(-) diff --git a/test/production/jest/index.test.ts b/test/production/jest/index.test.ts index 8fa5e61a01bc0..127f66b5674b7 100644 --- a/test/production/jest/index.test.ts +++ b/test/production/jest/index.test.ts @@ -137,10 +137,6 @@ describe('next/jest', () => { '@testing-library/jest-dom': '5.16.1', '@testing-library/react': '15.0.2', '@testing-library/user-event': '14.5.2', - // TODO: nwsapi is a transitive dependency of jest-environment-jsdom > - // jsdom. We're temporarily pinning the version here because later - // versions cause `ReferenceError: document is not defined` - nwsapi: '2.2.13', }, packageJson: { scripts: { diff --git a/test/production/jest/new-link-behavior.test.ts b/test/production/jest/new-link-behavior.test.ts index 907a68b38a01a..436bc2e9f2c6b 100644 --- a/test/production/jest/new-link-behavior.test.ts +++ b/test/production/jest/new-link-behavior.test.ts @@ -37,10 +37,6 @@ describe('next/jest newLinkBehavior', () => { jest: '29.7.0', 'jest-environment-jsdom': '29.7.0', '@testing-library/react': '15.0.2', - // TODO: nwsapi is a transitive dependency of jest-environment-jsdom > - // jsdom. We're temporarily pinning the version here because later - // versions cause `ReferenceError: document is not defined` - nwsapi: '2.2.13', }, packageJson: { scripts: { diff --git a/test/production/jest/next-image-preload/next-image-preload.test.ts b/test/production/jest/next-image-preload/next-image-preload.test.ts index 5409d367195cb..08408e18954ef 100644 --- a/test/production/jest/next-image-preload/next-image-preload.test.ts +++ b/test/production/jest/next-image-preload/next-image-preload.test.ts @@ -30,10 +30,6 @@ describe('next/jest', () => { 'jest-environment-jsdom': '29.7.0', '@testing-library/react': '15.0.2', '@testing-library/jest-dom': '5.17.0', - // TODO: nwsapi is a transitive dependency of jest-environment-jsdom > - // jsdom. We're temporarily pinning the version here because later - // versions cause `ReferenceError: document is not defined` - nwsapi: '2.2.13', }, }) }) diff --git a/test/production/jest/remove-react-properties/remove-react-properties-jest.test.ts b/test/production/jest/remove-react-properties/remove-react-properties-jest.test.ts index 1ff97a1a69690..c0ef51482428f 100644 --- a/test/production/jest/remove-react-properties/remove-react-properties-jest.test.ts +++ b/test/production/jest/remove-react-properties/remove-react-properties-jest.test.ts @@ -37,10 +37,6 @@ describe('next/jest', () => { 'jest-environment-jsdom': '29.7.0', '@testing-library/react': '15.0.2', '@testing-library/jest-dom': '5.16.4', - // TODO: nwsapi is a transitive dependency of jest-environment-jsdom > - // jsdom. We're temporarily pinning the version here because later - // versions cause `ReferenceError: document is not defined` - nwsapi: '2.2.13', }, packageJson: { scripts: {