From ea2ceed6cdb6d2a17bb39527398f9c257a5e0de1 Mon Sep 17 00:00:00 2001 From: Andrew Huth Date: Wed, 29 Nov 2023 11:00:20 -0500 Subject: [PATCH] chore: remove eslint-plugin-jest-playwright Doesn't seem like we're using Playwright. --- .eslintrc.js | 1 - jest.common.config.js | 2 +- jest.setup.ts | 2 -- package.json | 1 - packages/components/jest.setup.ts | 2 ++ packages/components/tsconfig.json | 2 +- packages/data-viz/jest.setup.ts | 2 ++ tsconfig.json | 2 +- yarn.lock | 12 ------------ 9 files changed, 7 insertions(+), 19 deletions(-) delete mode 100644 jest.setup.ts create mode 100644 packages/components/jest.setup.ts create mode 100644 packages/data-viz/jest.setup.ts diff --git a/.eslintrc.js b/.eslintrc.js index 4bb968344..48626dcc1 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -15,7 +15,6 @@ module.exports = { "plugin:jsx-a11y/recommended", "airbnb-typescript", "plugin:sonarjs/recommended", - "plugin:jest-playwright/recommended", "plugin:storybook/recommended", "plugin:prettier/recommended", "plugin:react-hooks/recommended", diff --git a/jest.common.config.js b/jest.common.config.js index b7548ebf6..6b2f90772 100644 --- a/jest.common.config.js +++ b/jest.common.config.js @@ -1,7 +1,7 @@ module.exports = { moduleDirectories: ["node_modules", ""], preset: "ts-jest", - setupFilesAfterEnv: ["jest-canvas-mock", "../../jest.setup.ts"], + setupFilesAfterEnv: ["jest-canvas-mock", "./jest.setup.ts"], testEnvironment: "jsdom", transform: { "^.+\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": diff --git a/jest.setup.ts b/jest.setup.ts deleted file mode 100644 index 79a4abada..000000000 --- a/jest.setup.ts +++ /dev/null @@ -1,2 +0,0 @@ -import "@testing-library/jest-dom"; -import "./intersectionObserverMock"; diff --git a/package.json b/package.json index 39754cbba..77cf98622 100644 --- a/package.json +++ b/package.json @@ -72,7 +72,6 @@ "eslint-plugin-flowtype": "^8.0.3", "eslint-plugin-import": "^2.27.5", "eslint-plugin-jest": "^27.2.1", - "eslint-plugin-jest-playwright": "^0.9.0", "eslint-plugin-jsx-a11y": "^6.7.1", "eslint-plugin-prettier": "^4.2.1", "eslint-plugin-react": "^7.32.2", diff --git a/packages/components/jest.setup.ts b/packages/components/jest.setup.ts new file mode 100644 index 000000000..cc7a01278 --- /dev/null +++ b/packages/components/jest.setup.ts @@ -0,0 +1,2 @@ +import "@testing-library/jest-dom"; +import "../../intersectionObserverMock"; diff --git a/packages/components/tsconfig.json b/packages/components/tsconfig.json index 7c8273419..00a910749 100644 --- a/packages/components/tsconfig.json +++ b/packages/components/tsconfig.json @@ -7,8 +7,8 @@ }, "include": [ "src/**/*", + "jest.setup.ts", "../../.eslintrc.js", - "../../jest.setup.ts" ], "exclude": [ "node_modules" diff --git a/packages/data-viz/jest.setup.ts b/packages/data-viz/jest.setup.ts new file mode 100644 index 000000000..cc7a01278 --- /dev/null +++ b/packages/data-viz/jest.setup.ts @@ -0,0 +1,2 @@ +import "@testing-library/jest-dom"; +import "../../intersectionObserverMock"; diff --git a/tsconfig.json b/tsconfig.json index 09a502c01..891a98cb4 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -57,7 +57,7 @@ // "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */ "skipLibCheck": true }, - "include": ["packages/**/src/**/*", ".eslintrc.js", "jest.setup.ts"], + "include": ["packages/**/src/**/*", ".eslintrc.js"], "exclude": ["**/node_modules", "node_modules"], "references": [ { diff --git a/yarn.lock b/yarn.lock index e0bb5d531..585eb679d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -9930,13 +9930,6 @@ eslint-plugin-import@^2.27.5: semver "^6.3.0" tsconfig-paths "^3.14.1" -eslint-plugin-jest-playwright@^0.9.0: - version "0.9.0" - resolved "https://registry.yarnpkg.com/eslint-plugin-jest-playwright/-/eslint-plugin-jest-playwright-0.9.0.tgz#39b071e11f36ea64e18efcaf40e5f596505d564f" - integrity sha512-BZP0/b/WeR35W2cp3Ru1xAHKgxLFk1YzPd2sdZqDSgp3ovbnf6xbvvSyJ8fUcpznJFkOxMwBOCsEOe1e21VNww== - dependencies: - eslint-plugin-playwright "^0.9.0" - eslint-plugin-jest@^27.2.1: version "27.2.1" resolved "https://registry.yarnpkg.com/eslint-plugin-jest/-/eslint-plugin-jest-27.2.1.tgz#b85b4adf41c682ea29f1f01c8b11ccc39b5c672c" @@ -9966,11 +9959,6 @@ eslint-plugin-jsx-a11y@^6.7.1: object.fromentries "^2.0.6" semver "^6.3.0" -eslint-plugin-playwright@^0.9.0: - version "0.9.0" - resolved "https://registry.yarnpkg.com/eslint-plugin-playwright/-/eslint-plugin-playwright-0.9.0.tgz#e14ac6c834f2704b293fc3f45cd40d771ec2e840" - integrity sha512-5bxAhiKjRASSgtQ4IipwtdesgQ8GT9m0PK61Uqxclu/TpiZS4eaAksydVeiiSPIOQph5GvuuLA7+oBS0WkWO6w== - eslint-plugin-prettier@^4.2.1: version "4.2.1" resolved "https://registry.yarnpkg.com/eslint-plugin-prettier/-/eslint-plugin-prettier-4.2.1.tgz#651cbb88b1dab98bfd42f017a12fa6b2d993f94b"