From ab2119d9ca9b0e15ae449c7a786f758b874ff3e5 Mon Sep 17 00:00:00 2001 From: Amir Zarrinkafsh Date: Fri, 3 Jun 2022 11:46:43 +1000 Subject: [PATCH] fix(web): add @types/jest dev dependency (#3467) --- web/package.json | 1 + web/pnpm-lock.yaml | 92 ++++++++-------------------------------------- web/tsconfig.json | 2 +- 3 files changed, 18 insertions(+), 77 deletions(-) diff --git a/web/package.json b/web/package.json index 87a3744d..193fd3f2 100644 --- a/web/package.json +++ b/web/package.json @@ -142,6 +142,7 @@ "@commitlint/config-conventional": "17.0.2", "@testing-library/jest-dom": "5.16.4", "@testing-library/react": "13.3.0", + "@types/jest": "28.1.0", "@types/node": "16.11.38", "@types/qrcode.react": "1.0.2", "@types/react": "18.0.10", diff --git a/web/pnpm-lock.yaml b/web/pnpm-lock.yaml index 42264ff7..2c7d30c4 100644 --- a/web/pnpm-lock.yaml +++ b/web/pnpm-lock.yaml @@ -12,6 +12,7 @@ specifiers: '@material-ui/styles': 4.11.5 '@testing-library/jest-dom': 5.16.4 '@testing-library/react': 13.3.0 + '@types/jest': 28.1.0 '@types/node': 16.11.38 '@types/qrcode.react': 1.0.2 '@types/react': 18.0.10 @@ -88,6 +89,7 @@ devDependencies: '@commitlint/config-conventional': 17.0.2 '@testing-library/jest-dom': 5.16.4 '@testing-library/react': 13.3.0_ef5jwxihqo6n7gxfmzogljlgcm + '@types/jest': 28.1.0 '@types/node': 16.11.38 '@types/qrcode.react': 1.0.2 '@types/react': 18.0.10 @@ -100,10 +102,10 @@ devDependencies: esbuild-jest: 0.5.0_esbuild@0.14.42 eslint: 8.16.0 eslint-config-prettier: 8.5.0_eslint@8.16.0 - eslint-config-react-app: 7.0.1_q6xoy4zf2ciu32vsopjc7ajpma + eslint-config-react-app: 7.0.1_zima7unemnko5yeh3c4d4skh2a eslint-formatter-rdjson: 1.0.5 eslint-import-resolver-typescript: 2.7.1_btspkuwbqkl4adpiufzbathtpi - eslint-plugin-import: 2.26.0_nx6xshhm6llsarph5r4g4vfah4 + eslint-plugin-import: 2.26.0_eslint@8.16.0 eslint-plugin-jsx-a11y: 6.5.1_eslint@8.16.0 eslint-plugin-prettier: 4.0.0_j7rsahgqtkecno6yauhsgsglf4 eslint-plugin-react: 7.30.0_eslint@8.16.0 @@ -2678,8 +2680,8 @@ packages: '@types/istanbul-lib-report': 3.0.0 dev: true - /@types/jest/27.4.1: - resolution: {integrity: sha512-23iPJADSmicDVrWk+HT58LMJtzLAnB2AgIzplQuq/bSrGaxCrlvRFjGbXmamnnk/mAmCdLStiGqggu28ocUyiw==} + /@types/jest/28.1.0: + resolution: {integrity: sha512-ITfF6JJIl9zbEi2k6NmhNE/BiDqfsI/ceqfvdaWaPbcrCpYyyRq4KtDQIWh6vQUru6SqwppODiom/Zhid+np6A==} dependencies: jest-matcher-utils: 27.5.1 pretty-format: 27.5.1 @@ -2763,7 +2765,7 @@ packages: /@types/testing-library__jest-dom/5.14.3: resolution: {integrity: sha512-oKZe+Mf4ioWlMuzVBaXQ9WDnEm1+umLx0InILg+yvZVBBDmzV5KfZyLrCvadtWcx8+916jLmHafcmqqffl+iIw==} dependencies: - '@types/jest': 27.4.1 + '@types/jest': 28.1.0 dev: true /@types/tough-cookie/4.0.2: @@ -3113,8 +3115,6 @@ packages: dependencies: micromatch: 3.1.10 normalize-path: 2.1.1 - transitivePeerDependencies: - - supports-color dev: true /anymatch/3.1.2: @@ -3512,8 +3512,6 @@ packages: snapdragon-node: 2.1.1 split-string: 3.1.0 to-regex: 3.0.2 - transitivePeerDependencies: - - supports-color dev: true /braces/3.0.2: @@ -3921,22 +3919,12 @@ packages: /debug/2.6.9: resolution: {integrity: sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==} - peerDependencies: - supports-color: '*' - peerDependenciesMeta: - supports-color: - optional: true dependencies: ms: 2.0.0 dev: true /debug/3.2.7: resolution: {integrity: sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==} - peerDependencies: - supports-color: '*' - peerDependenciesMeta: - supports-color: - optional: true dependencies: ms: 2.1.3 dev: true @@ -4461,15 +4449,11 @@ packages: eslint: 8.16.0 dev: true - /eslint-config-react-app/7.0.1_q6xoy4zf2ciu32vsopjc7ajpma: + /eslint-config-react-app/7.0.1_zima7unemnko5yeh3c4d4skh2a: resolution: {integrity: sha512-K6rNzvkIeHaTd8m/QEh1Zko0KI7BACWkkneSs6s9cKZC/J27X3eZR6Upt1jkmZ/4FK+XUOPPxMEN7+lbUXfSlA==} engines: {node: '>=14.0.0'} peerDependencies: eslint: ^8.0.0 - typescript: '*' - peerDependenciesMeta: - typescript: - optional: true dependencies: '@babel/core': 7.17.8 '@babel/eslint-parser': 7.17.0_tdb6nu2rxg2w5zczj5d463hx3a @@ -4480,20 +4464,18 @@ packages: confusing-browser-globals: 1.0.11 eslint: 8.16.0 eslint-plugin-flowtype: 8.0.3_eslint@8.16.0 - eslint-plugin-import: 2.26.0_nx6xshhm6llsarph5r4g4vfah4 + eslint-plugin-import: 2.26.0_eslint@8.16.0 eslint-plugin-jest: 25.7.0_gofbpe4ha5wcz4meg2gnw3277q eslint-plugin-jsx-a11y: 6.5.1_eslint@8.16.0 eslint-plugin-react: 7.30.0_eslint@8.16.0 eslint-plugin-react-hooks: 4.5.0_eslint@8.16.0 eslint-plugin-testing-library: 5.2.0_xztl6dhthcahlo6akmb2bmjmle - typescript: 4.7.2 transitivePeerDependencies: - '@babel/plugin-syntax-flow' - '@babel/plugin-transform-react-jsx' - - eslint-import-resolver-typescript - - eslint-import-resolver-webpack - jest - supports-color + - typescript dev: true /eslint-formatter-rdjson/1.0.5: @@ -4505,8 +4487,6 @@ packages: dependencies: debug: 3.2.7 resolve: 1.22.0 - transitivePeerDependencies: - - supports-color dev: true /eslint-import-resolver-typescript/2.7.1_btspkuwbqkl4adpiufzbathtpi: @@ -4518,7 +4498,7 @@ packages: dependencies: debug: 4.3.4 eslint: 8.16.0 - eslint-plugin-import: 2.26.0_nx6xshhm6llsarph5r4g4vfah4 + eslint-plugin-import: 2.26.0_eslint@8.16.0 glob: 7.2.0 is-glob: 4.0.3 resolve: 1.22.0 @@ -4527,31 +4507,12 @@ packages: - supports-color dev: true - /eslint-module-utils/2.7.3_ays5c7ufltmi7id76fcumctmke: + /eslint-module-utils/2.7.3: resolution: {integrity: sha512-088JEC7O3lDZM9xGe0RerkOMd0EjFl+Yvd1jPWIkMT5u3H9+HC34mWWPnqPrN13gieT9pBOO+Qt07Nb/6TresQ==} engines: {node: '>=4'} - peerDependencies: - '@typescript-eslint/parser': '*' - eslint-import-resolver-node: '*' - eslint-import-resolver-typescript: '*' - eslint-import-resolver-webpack: '*' - peerDependenciesMeta: - '@typescript-eslint/parser': - optional: true - eslint-import-resolver-node: - optional: true - eslint-import-resolver-typescript: - optional: true - eslint-import-resolver-webpack: - optional: true dependencies: - '@typescript-eslint/parser': 5.27.0_xztl6dhthcahlo6akmb2bmjmle debug: 3.2.7 - eslint-import-resolver-node: 0.3.6 - eslint-import-resolver-typescript: 2.7.1_btspkuwbqkl4adpiufzbathtpi find-up: 2.1.0 - transitivePeerDependencies: - - supports-color dev: true /eslint-plugin-flowtype/8.0.3_eslint@8.16.0: @@ -4572,24 +4533,19 @@ packages: string-natural-compare: 3.0.1 dev: true - /eslint-plugin-import/2.26.0_nx6xshhm6llsarph5r4g4vfah4: + /eslint-plugin-import/2.26.0_eslint@8.16.0: resolution: {integrity: sha512-hYfi3FXaM8WPLf4S1cikh/r4IxnO6zrhZbEGz2b660EJRbuxgpDS5gkCuYgGWg2xxh2rBuIr4Pvhve/7c31koA==} engines: {node: '>=4'} peerDependencies: - '@typescript-eslint/parser': '*' eslint: ^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8 - peerDependenciesMeta: - '@typescript-eslint/parser': - optional: true dependencies: - '@typescript-eslint/parser': 5.27.0_xztl6dhthcahlo6akmb2bmjmle array-includes: 3.1.4 array.prototype.flat: 1.2.5 debug: 2.6.9 doctrine: 2.1.0 eslint: 8.16.0 eslint-import-resolver-node: 0.3.6 - eslint-module-utils: 2.7.3_ays5c7ufltmi7id76fcumctmke + eslint-module-utils: 2.7.3 has: 1.0.3 is-core-module: 2.8.1 is-glob: 4.0.3 @@ -4597,10 +4553,6 @@ packages: object.values: 1.1.5 resolve: 1.22.0 tsconfig-paths: 3.14.1 - transitivePeerDependencies: - - eslint-import-resolver-typescript - - eslint-import-resolver-webpack - - supports-color dev: true /eslint-plugin-jest/25.7.0_gofbpe4ha5wcz4meg2gnw3277q: @@ -4884,8 +4836,6 @@ packages: regex-not: 1.0.2 snapdragon: 0.8.2 to-regex: 3.0.2 - transitivePeerDependencies: - - supports-color dev: true /expect/28.1.0: @@ -4926,8 +4876,6 @@ packages: regex-not: 1.0.2 snapdragon: 0.8.2 to-regex: 3.0.2 - transitivePeerDependencies: - - supports-color dev: true /fast-deep-equal/3.1.3: @@ -5973,8 +5921,6 @@ packages: walker: 1.0.8 optionalDependencies: fsevents: 2.3.2 - transitivePeerDependencies: - - supports-color dev: true /jest-haste-map/28.1.0: @@ -6690,8 +6636,6 @@ packages: regex-not: 1.0.2 snapdragon: 0.8.2 to-regex: 3.0.2 - transitivePeerDependencies: - - supports-color dev: true /micromatch/4.0.5: @@ -6782,8 +6726,6 @@ packages: regex-not: 1.0.2 snapdragon: 0.8.2 to-regex: 3.0.2 - transitivePeerDependencies: - - supports-color dev: true /natural-compare/1.4.0: @@ -7249,6 +7191,7 @@ packages: loose-envify: 1.4.0 react: 18.1.0 scheduler: 0.22.0 + dev: false /react-i18next/11.16.9_nw4hjwi74v2s344wj4mzshrrta: resolution: {integrity: sha512-euXxWvcEAvsY7ZVkwx9ztCq4butqtsGHEkpkuo0RMj8Ru09IF9o2KxCyN+zyv51Nr0aBh/elaTIiR6fMb8YfVg==} @@ -7369,6 +7312,7 @@ packages: engines: {node: '>=0.10.0'} dependencies: loose-envify: 1.4.0 + dev: false /read-pkg-up/7.0.1: resolution: {integrity: sha512-zK0TB7Xd6JpCLmlLmufqykGE+/TlOePD6qKClNW7hHDKFh/J7/7gCWGR7joEQEW1bKq3a3yUZSObOoWLFQ4ohg==} @@ -7626,8 +7570,6 @@ packages: micromatch: 3.1.10 minimist: 1.2.6 walker: 1.0.8 - transitivePeerDependencies: - - supports-color dev: true /saxes/5.0.1: @@ -7753,8 +7695,6 @@ packages: source-map: 0.5.7 source-map-resolve: 0.5.3 use: 3.1.1 - transitivePeerDependencies: - - supports-color dev: true /source-map-js/1.0.2: diff --git a/web/tsconfig.json b/web/tsconfig.json index 4d1c4cba..9e31c14e 100644 --- a/web/tsconfig.json +++ b/web/tsconfig.json @@ -21,7 +21,7 @@ "dom.iterable", "esnext" ], - "types": ["vite/client", "vite-plugin-svgr/client"], + "types": ["@types/jest", "vite/client", "vite-plugin-svgr/client"], "allowJs": true, "skipLibCheck": true, "esModuleInterop": true,