From cf2ef8d0abaecf4cc5d6350c88da0fbd4ffa23ba Mon Sep 17 00:00:00 2001 From: Emmanuel Nipal Date: Fri, 22 Apr 2022 12:58:40 +0800 Subject: [PATCH] fix: move jest dom to dependencies --- package.json | 6 ++-- pnpm-lock.yaml | 70 ++++++++++++----------------------------------- src/setupTests.js | 1 - 3 files changed, 20 insertions(+), 57 deletions(-) diff --git a/package.json b/package.json index d02cc50..e4a98ea 100644 --- a/package.json +++ b/package.json @@ -21,6 +21,8 @@ "**/*": "prettier --write --ignore-unknown" }, "dependencies": { + "@testing-library/jest-dom": "^5.16.4", + "@testing-library/react": "^13.1.1", "immer": "^9.0.12", "react": "^18.0.0", "react-dom": "^18.0.0", @@ -34,8 +36,6 @@ "@babel/preset-react": "^7.16.7", "@commitlint/cli": "^16.2.3", "@commitlint/config-conventional": "^16.2.1", - "@testing-library/jest-dom": "^5.16.4", - "@testing-library/react": "^13.1.1", "@types/react": "^18.0.0", "@types/react-dom": "^18.0.0", "@vitejs/plugin-react": "^1.3.1", @@ -59,4 +59,4 @@ "vite-plugin-compression": "^0.5.1", "vite-plugin-svgr": "^1.1.0" } -} \ No newline at end of file +} diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 8ad0e16..368b8ac 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -38,6 +38,8 @@ specifiers: zustand: 4.0.0-rc.0 dependencies: + '@testing-library/jest-dom': 5.16.4 + '@testing-library/react': 13.1.1_react-dom@18.0.0+react@18.0.0 immer: 9.0.12 react: 18.0.0 react-dom: 18.0.0_react@18.0.0 @@ -51,8 +53,6 @@ devDependencies: '@babel/preset-react': 7.16.7_@babel+core@7.17.9 '@commitlint/cli': 16.2.3 '@commitlint/config-conventional': 16.2.1 - '@testing-library/jest-dom': 5.16.4 - '@testing-library/react': 13.1.1_react-dom@18.0.0+react@18.0.0 '@types/react': 18.0.6 '@types/react-dom': 18.0.2 '@vitejs/plugin-react': 1.3.1 @@ -95,7 +95,6 @@ packages: engines: { node: '>=6.9.0' } dependencies: '@babel/highlight': 7.17.9 - dev: true /@babel/compat-data/7.17.7: resolution: @@ -400,7 +399,6 @@ packages: integrity: sha512-hsEnFemeiW4D08A5gUAZxLBTXpZ39P+a+DGDsHw1yxqyQ/jzFEnxf5uTEGp+3bzAbNOxU1paTgYS4ECU/IgfDw==, } engines: { node: '>=6.9.0' } - dev: true /@babel/helper-validator-option/7.16.7: resolution: @@ -449,7 +447,6 @@ packages: '@babel/helper-validator-identifier': 7.16.7 chalk: 2.4.2 js-tokens: 4.0.0 - dev: true /@babel/parser/7.17.9: resolution: @@ -2412,7 +2409,7 @@ packages: dom-accessibility-api: 0.5.13 lz-string: 1.4.4 pretty-format: 27.5.1 - dev: true + dev: false /@testing-library/jest-dom/5.16.4: resolution: @@ -2430,7 +2427,7 @@ packages: dom-accessibility-api: 0.5.13 lodash: 4.17.21 redent: 3.0.0 - dev: true + dev: false /@testing-library/react/13.1.1_react-dom@18.0.0+react@18.0.0: resolution: @@ -2447,7 +2444,7 @@ packages: '@types/react-dom': 18.0.2 react: 18.0.0 react-dom: 18.0.0_react@18.0.0 - dev: true + dev: false /@tootallnate/once/1.1.2: resolution: @@ -2490,7 +2487,7 @@ packages: { integrity: sha512-HnYpAE1Y6kRyKM/XkEuiRQhTHvkzMBurTHnpFLYLBGPIylZNPs9jJcuOOYWxPLJCSEtmZT0Y8rHDokKN7rRTig==, } - dev: true + dev: false /@types/babel__core/7.1.19: resolution: @@ -2575,7 +2572,7 @@ packages: dependencies: jest-matcher-utils: 27.5.1 pretty-format: 27.5.1 - dev: true + dev: false /@types/json5/0.0.29: resolution: { integrity: sha1-7ihweulOEdK4J7y+UnC86n8+ce4= } @@ -2621,7 +2618,6 @@ packages: { integrity: sha512-JCB8C6SnDoQf0cNycqd/35A7MjcnK+ZTqE7judS6o7utxUCg6imJg3QK2qzHKszlTjcj2cn+NwMB2i96ubpj7w==, } - dev: true /@types/react-dom/18.0.2: resolution: @@ -2630,7 +2626,6 @@ packages: } dependencies: '@types/react': 18.0.6 - dev: true /@types/react/18.0.6: resolution: @@ -2641,14 +2636,12 @@ packages: '@types/prop-types': 15.7.5 '@types/scheduler': 0.16.2 csstype: 3.0.11 - dev: true /@types/scheduler/0.16.2: resolution: { integrity: sha512-hppQEBDmlwhFAXKJX2KnWLYu5yMfi91yazPb2l+lbJiwW+wdo1gNeRA+3RgNSO39WYX2euey41KEwnqesU2Jew==, } - dev: true /@types/stack-utils/2.0.1: resolution: @@ -2664,7 +2657,7 @@ packages: } dependencies: '@types/jest': 27.4.1 - dev: true + dev: false /@types/yargs-parser/21.0.0: resolution: @@ -2825,7 +2818,6 @@ packages: integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==, } engines: { node: '>=8' } - dev: true /ansi-regex/6.0.1: resolution: @@ -2843,7 +2835,6 @@ packages: engines: { node: '>=4' } dependencies: color-convert: 1.9.3 - dev: true /ansi-styles/4.3.0: resolution: @@ -2853,7 +2844,6 @@ packages: engines: { node: '>=8' } dependencies: color-convert: 2.0.1 - dev: true /ansi-styles/5.2.0: resolution: @@ -2861,7 +2851,6 @@ packages: integrity: sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==, } engines: { node: '>=10' } - dev: true /ansi-styles/6.1.0: resolution: @@ -2922,7 +2911,7 @@ packages: integrity: sha512-V+SM7AbUwJ+EBnB8+DXs0hPZHO0W6pqBcc0dW90OwtVG02PswOu/teuARoLQjdDOH+t9pJgGnW5/Qmouf3gPJg==, } engines: { node: '>=6.0' } - dev: true + dev: false /array-ify/1.0.0: resolution: { integrity: sha1-nlKHYrSpBmrRY6aWKjZEGOlibs4= } @@ -2996,7 +2985,7 @@ packages: } engines: { node: '>= 4.5.0' } hasBin: true - dev: true + dev: false /axe-core/4.4.1: resolution: @@ -3291,7 +3280,6 @@ packages: ansi-styles: 3.2.1 escape-string-regexp: 1.0.5 supports-color: 5.5.0 - dev: true /chalk/3.0.0: resolution: @@ -3302,7 +3290,7 @@ packages: dependencies: ansi-styles: 4.3.0 supports-color: 7.2.0 - dev: true + dev: false /chalk/4.1.2: resolution: @@ -3313,7 +3301,6 @@ packages: dependencies: ansi-styles: 4.3.0 supports-color: 7.2.0 - dev: true /char-regex/1.0.2: resolution: @@ -3425,7 +3412,6 @@ packages: } dependencies: color-name: 1.1.3 - dev: true /color-convert/2.0.1: resolution: @@ -3435,18 +3421,15 @@ packages: engines: { node: '>=7.0.0' } dependencies: color-name: 1.1.4 - dev: true /color-name/1.1.3: resolution: { integrity: sha1-p9BVi9icQveV3UIyj3QIMcpTvCU= } - dev: true /color-name/1.1.4: resolution: { integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==, } - dev: true /colorette/2.0.16: resolution: @@ -3625,7 +3608,7 @@ packages: /css.escape/1.5.1: resolution: { integrity: sha1-QuJ9T6BK4y+TGktNQZH6nN3ul8s= } - dev: true + dev: false /css/3.0.0: resolution: @@ -3636,7 +3619,7 @@ packages: inherits: 2.0.4 source-map: 0.6.1 source-map-resolve: 0.6.0 - dev: true + dev: false /cssom/0.3.8: resolution: @@ -3667,7 +3650,6 @@ packages: { integrity: sha512-sa6P2wJ+CAbgyy4KFssIb/JNMLxFvKF1pCYCSXS8ZMuqZnMsrxqI2E5sPyoTpxoPU/gVZMzr2zjOfg8GIZOMsw==, } - dev: true /damerau-levenshtein/1.0.8: resolution: @@ -3768,7 +3750,7 @@ packages: /decode-uri-component/0.2.0: resolution: { integrity: sha1-6zkTMzRYd1y4TNGh+uBiEGu4dUU= } engines: { node: '>=0.10' } - dev: true + dev: false /dedent/0.7.0: resolution: { integrity: sha1-JJXduvbrh0q7Dhvp3yLS5aVEMmw= } @@ -3819,7 +3801,6 @@ packages: integrity: sha512-k1gCAXAsNgLwEL+Y8Wvl+M6oEFj5bgazfZULpS5CneoPPXRaCCW7dm+q21Ky2VEE5X+VeRDBVg1Pcvvsr4TtNQ==, } engines: { node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0 } - dev: true /diff/4.0.2: resolution: @@ -3854,7 +3835,7 @@ packages: { integrity: sha512-R305kwb5CcMDIpSHUnLyIAp7SrSPBx6F0VfQFB3M75xVMHhXJJIdePYgbPPh1o57vCHNu5QztokWUPsLjWzFqw==, } - dev: true + dev: false /domexception/2.0.1: resolution: @@ -4269,7 +4250,6 @@ packages: /escape-string-regexp/1.0.5: resolution: { integrity: sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ= } engines: { node: '>=0.8.0' } - dev: true /escape-string-regexp/2.0.0: resolution: @@ -4955,7 +4935,6 @@ packages: /has-flag/3.0.0: resolution: { integrity: sha1-tdRU3CGZriJWmfNGfloH87lVuv0= } engines: { node: '>=4' } - dev: true /has-flag/4.0.0: resolution: @@ -4963,7 +4942,6 @@ packages: integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==, } engines: { node: '>=8' } - dev: true /has-property-descriptors/1.0.0: resolution: @@ -5155,7 +5133,6 @@ packages: integrity: sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==, } engines: { node: '>=8' } - dev: true /inflight/1.0.6: resolution: { integrity: sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk= } @@ -5169,7 +5146,6 @@ packages: { integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==, } - dev: true /ini/1.3.8: resolution: @@ -5598,7 +5574,6 @@ packages: diff-sequences: 27.5.1 jest-get-type: 27.5.1 pretty-format: 27.5.1 - dev: true /jest-docblock/27.5.1: resolution: @@ -5666,7 +5641,6 @@ packages: integrity: sha512-2KY95ksYSaK7DMBWQn6dQz3kqAf3BB64y2udeG+hv4KfSOb9qwcYQstTJc1KCbsix+wLZWZYN8t7nwX3GOBLRw==, } engines: { node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0 } - dev: true /jest-haste-map/27.5.1: resolution: @@ -5741,7 +5715,6 @@ packages: jest-diff: 27.5.1 jest-get-type: 27.5.1 pretty-format: 27.5.1 - dev: true /jest-message-util/27.5.1: resolution: @@ -6335,7 +6308,6 @@ packages: { integrity: sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==, } - dev: true /log-update/4.0.0: resolution: @@ -6372,7 +6344,7 @@ packages: /lz-string/1.4.4: resolution: { integrity: sha1-wNjq82BZ9wV5bh40SBHPTEmNOiY= } hasBin: true - dev: true + dev: false /make-dir/3.1.0: resolution: @@ -6483,7 +6455,6 @@ packages: integrity: sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==, } engines: { node: '>=4' } - dev: true /minimatch/3.1.2: resolution: @@ -6960,7 +6931,6 @@ packages: ansi-regex: 5.0.1 ansi-styles: 5.2.0 react-is: 17.0.2 - dev: true /prompts/2.4.2: resolution: @@ -7037,7 +7007,6 @@ packages: { integrity: sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==, } - dev: true /react-is/18.0.0: resolution: @@ -7174,7 +7143,6 @@ packages: dependencies: indent-string: 4.0.0 strip-indent: 3.0.0 - dev: true /regenerate-unicode-properties/10.0.1: resolution: @@ -7569,7 +7537,7 @@ packages: dependencies: atob: 2.1.2 decode-uri-component: 0.2.0 - dev: true + dev: false /source-map-support/0.5.21: resolution: @@ -7592,7 +7560,6 @@ packages: integrity: sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==, } engines: { node: '>=0.10.0' } - dev: true /source-map/0.7.3: resolution: @@ -7796,7 +7763,6 @@ packages: engines: { node: '>=8' } dependencies: min-indent: 1.0.1 - dev: true /strip-json-comments/3.1.1: resolution: @@ -7814,7 +7780,6 @@ packages: engines: { node: '>=4' } dependencies: has-flag: 3.0.0 - dev: true /supports-color/7.2.0: resolution: @@ -7824,7 +7789,6 @@ packages: engines: { node: '>=8' } dependencies: has-flag: 4.0.0 - dev: true /supports-color/8.1.1: resolution: diff --git a/src/setupTests.js b/src/setupTests.js index 11ac439..8f2609b 100644 --- a/src/setupTests.js +++ b/src/setupTests.js @@ -1,4 +1,3 @@ -/* eslint-disable import/no-extraneous-dependencies */ // jest-dom adds custom jest matchers for asserting on DOM nodes. // allows you to do things like: // expect(element).toHaveTextContent(/react/i)