From c30e77d3ca79ee0f6531ffe98f3b5b789906b8be Mon Sep 17 00:00:00 2001 From: YeonJuan Date: Wed, 13 Nov 2024 22:01:56 +0900 Subject: [PATCH 1/2] test: fix jest plugin usage in integration test --- .../flat-config-types-@types__eslint-v8/eslint.config.js | 3 +-- .../flat-config-types-@types__eslint-v9/eslint.config.js | 3 +-- .../flat-config-types-@types__eslint-v8.test.ts.snap | 3 +-- .../flat-config-types-@types__eslint-v9.test.ts.snap | 3 +-- 4 files changed, 4 insertions(+), 8 deletions(-) diff --git a/packages/integration-tests/fixtures/flat-config-types-@types__eslint-v8/eslint.config.js b/packages/integration-tests/fixtures/flat-config-types-@types__eslint-v8/eslint.config.js index a7096065b106..f7e3a71a0d31 100644 --- a/packages/integration-tests/fixtures/flat-config-types-@types__eslint-v8/eslint.config.js +++ b/packages/integration-tests/fixtures/flat-config-types-@types__eslint-v8/eslint.config.js @@ -61,7 +61,6 @@ function _otherCases() { deprecationPlugin.configs.recommended, // this should error but doesn't because there are no types exported from the jest plugin jestPlugin.configs.recommended, - // this should error but doesn't because there are no types exported from the jest plugin - ...jestPlugin.configs['flat/recommended'], + jestPlugin.configs['flat/recommended'], ); } diff --git a/packages/integration-tests/fixtures/flat-config-types-@types__eslint-v9/eslint.config.js b/packages/integration-tests/fixtures/flat-config-types-@types__eslint-v9/eslint.config.js index a7096065b106..f7e3a71a0d31 100644 --- a/packages/integration-tests/fixtures/flat-config-types-@types__eslint-v9/eslint.config.js +++ b/packages/integration-tests/fixtures/flat-config-types-@types__eslint-v9/eslint.config.js @@ -61,7 +61,6 @@ function _otherCases() { deprecationPlugin.configs.recommended, // this should error but doesn't because there are no types exported from the jest plugin jestPlugin.configs.recommended, - // this should error but doesn't because there are no types exported from the jest plugin - ...jestPlugin.configs['flat/recommended'], + jestPlugin.configs['flat/recommended'], ); } diff --git a/packages/integration-tests/tests/__snapshots__/flat-config-types-@types__eslint-v8.test.ts.snap b/packages/integration-tests/tests/__snapshots__/flat-config-types-@types__eslint-v8.test.ts.snap index f21cd613edf1..626ab8a62eae 100644 --- a/packages/integration-tests/tests/__snapshots__/flat-config-types-@types__eslint-v8.test.ts.snap +++ b/packages/integration-tests/tests/__snapshots__/flat-config-types-@types__eslint-v8.test.ts.snap @@ -106,8 +106,7 @@ function _otherCases() { deprecationPlugin.configs.recommended, // this should error but doesn't because there are no types exported from the jest plugin jestPlugin.configs.recommended, - // this should error but doesn't because there are no types exported from the jest plugin - ...jestPlugin.configs['flat/recommended'], + jestPlugin.configs['flat/recommended'], ) } ", diff --git a/packages/integration-tests/tests/__snapshots__/flat-config-types-@types__eslint-v9.test.ts.snap b/packages/integration-tests/tests/__snapshots__/flat-config-types-@types__eslint-v9.test.ts.snap index a30dfb850fd9..19b22b68fc2a 100644 --- a/packages/integration-tests/tests/__snapshots__/flat-config-types-@types__eslint-v9.test.ts.snap +++ b/packages/integration-tests/tests/__snapshots__/flat-config-types-@types__eslint-v9.test.ts.snap @@ -106,8 +106,7 @@ function _otherCases() { deprecationPlugin.configs.recommended, // this should error but doesn't because there are no types exported from the jest plugin jestPlugin.configs.recommended, - // this should error but doesn't because there are no types exported from the jest plugin - ...jestPlugin.configs['flat/recommended'], + jestPlugin.configs['flat/recommended'], ) } ", From 1ff57b7aa4e1ff1ae23dd10e53fe8eaeb858c0e6 Mon Sep 17 00:00:00 2001 From: YeonJuan Date: Fri, 15 Nov 2024 01:18:16 +0900 Subject: [PATCH 2/2] fixup --- .../flat-config-types-@types__eslint-v8/eslint.config.js | 1 - .../flat-config-types-@types__eslint-v9/eslint.config.js | 1 - .../flat-config-types-@types__eslint-v8.test.ts.snap | 1 - .../flat-config-types-@types__eslint-v9.test.ts.snap | 1 - 4 files changed, 4 deletions(-) diff --git a/packages/integration-tests/fixtures/flat-config-types-@types__eslint-v8/eslint.config.js b/packages/integration-tests/fixtures/flat-config-types-@types__eslint-v8/eslint.config.js index f7e3a71a0d31..f64ea6686bab 100644 --- a/packages/integration-tests/fixtures/flat-config-types-@types__eslint-v8/eslint.config.js +++ b/packages/integration-tests/fixtures/flat-config-types-@types__eslint-v8/eslint.config.js @@ -61,6 +61,5 @@ function _otherCases() { deprecationPlugin.configs.recommended, // this should error but doesn't because there are no types exported from the jest plugin jestPlugin.configs.recommended, - jestPlugin.configs['flat/recommended'], ); } diff --git a/packages/integration-tests/fixtures/flat-config-types-@types__eslint-v9/eslint.config.js b/packages/integration-tests/fixtures/flat-config-types-@types__eslint-v9/eslint.config.js index f7e3a71a0d31..f64ea6686bab 100644 --- a/packages/integration-tests/fixtures/flat-config-types-@types__eslint-v9/eslint.config.js +++ b/packages/integration-tests/fixtures/flat-config-types-@types__eslint-v9/eslint.config.js @@ -61,6 +61,5 @@ function _otherCases() { deprecationPlugin.configs.recommended, // this should error but doesn't because there are no types exported from the jest plugin jestPlugin.configs.recommended, - jestPlugin.configs['flat/recommended'], ); } diff --git a/packages/integration-tests/tests/__snapshots__/flat-config-types-@types__eslint-v8.test.ts.snap b/packages/integration-tests/tests/__snapshots__/flat-config-types-@types__eslint-v8.test.ts.snap index 626ab8a62eae..36e06c03f5b7 100644 --- a/packages/integration-tests/tests/__snapshots__/flat-config-types-@types__eslint-v8.test.ts.snap +++ b/packages/integration-tests/tests/__snapshots__/flat-config-types-@types__eslint-v8.test.ts.snap @@ -106,7 +106,6 @@ function _otherCases() { deprecationPlugin.configs.recommended, // this should error but doesn't because there are no types exported from the jest plugin jestPlugin.configs.recommended, - jestPlugin.configs['flat/recommended'], ) } ", diff --git a/packages/integration-tests/tests/__snapshots__/flat-config-types-@types__eslint-v9.test.ts.snap b/packages/integration-tests/tests/__snapshots__/flat-config-types-@types__eslint-v9.test.ts.snap index 19b22b68fc2a..71d9e1566677 100644 --- a/packages/integration-tests/tests/__snapshots__/flat-config-types-@types__eslint-v9.test.ts.snap +++ b/packages/integration-tests/tests/__snapshots__/flat-config-types-@types__eslint-v9.test.ts.snap @@ -106,7 +106,6 @@ function _otherCases() { deprecationPlugin.configs.recommended, // this should error but doesn't because there are no types exported from the jest plugin jestPlugin.configs.recommended, - jestPlugin.configs['flat/recommended'], ) } ", pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy