diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index ef40145..163be1b 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -16,13 +16,21 @@ jobs: token: ${{ secrets.GITHUB_TOKEN }} self: Mergeability + actionlint: + name: lint github actions + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: reviewdog/action-actionlint@v1 + + yarn-check: name: yarn ${{ matrix.command }} runs-on: ubuntu-latest strategy: fail-fast: false matrix: - command: ["lint:ci", "format:ci", "build:scss", "build:ts", "test"] + command: ["lint:ci", "format:ci", "build:scss", "build:ts", "test:coverage"] steps: - uses: actions/checkout@v4 @@ -42,3 +50,12 @@ jobs: run: yarn ${{ matrix.command }} env: FORCE_COLOR: 2 + CONDITION: always() + CONDITION2: ${{ matrix.command == 'test:coverage' }} + CONDITION3: ${{ matrix.command == 'test:coverage' }} && always() + - name: 'Report Coverage' + if: matrix.command == 'test:coverage' && always() + uses: davelosert/vitest-coverage-report-action@v2 + with: + json-summary-path : './src/__tests__/coverage/coverage-summary.json' + diff --git a/.gitignore b/.gitignore index f2b96dd..d658e9c 100644 --- a/.gitignore +++ b/.gitignore @@ -6,8 +6,10 @@ .pnp.js # testing -/coverage +vitest.config.mts.timestamp-*.mjs vitest.config.ts.timestamp-*.mjs +html/ +src/__tests__/coverage # production /build diff --git a/.pnp.cjs b/.pnp.cjs index 7e6ab3d..796688d 100755 --- a/.pnp.cjs +++ b/.pnp.cjs @@ -35,6 +35,8 @@ const RAW_RUNTIME_STATE = ["@types/react", "npm:18.2.57"],\ ["@types/react-dom", "npm:18.2.19"],\ ["@vitejs/plugin-react", "virtual:3786d9363fd0a547cdeba13dbbd7739095de182e2f1aa37c74f8398253205a5b62b2735c6799681aabf1f7716a4d0562fe89843678033b5bdce0191960fb23a9#npm:4.2.1"],\ + ["@vitest/coverage-istanbul", "virtual:3786d9363fd0a547cdeba13dbbd7739095de182e2f1aa37c74f8398253205a5b62b2735c6799681aabf1f7716a4d0562fe89843678033b5bdce0191960fb23a9#npm:1.3.1"],\ + ["@vitest/ui", "virtual:3786d9363fd0a547cdeba13dbbd7739095de182e2f1aa37c74f8398253205a5b62b2735c6799681aabf1f7716a4d0562fe89843678033b5bdce0191960fb23a9#npm:1.3.1"],\ ["@yarnpkg/sdks", "npm:3.1.0"],\ ["antd", "virtual:3786d9363fd0a547cdeba13dbbd7739095de182e2f1aa37c74f8398253205a5b62b2735c6799681aabf1f7716a4d0562fe89843678033b5bdce0191960fb23a9#npm:4.24.15"],\ ["classnames", "npm:2.5.1"],\ @@ -222,6 +224,28 @@ const RAW_RUNTIME_STATE = ["semver", "npm:6.3.1"]\ ],\ "linkType": "HARD"\ + }],\ + ["npm:7.24.0", {\ + "packageLocation": "./.yarn/cache/@babel-core-npm-7.24.0-b1f835a8d5-1e22215cc8.zip/node_modules/@babel/core/",\ + "packageDependencies": [\ + ["@babel/core", "npm:7.24.0"],\ + ["@ampproject/remapping", "npm:2.2.1"],\ + ["@babel/code-frame", "npm:7.23.5"],\ + ["@babel/generator", "npm:7.23.6"],\ + ["@babel/helper-compilation-targets", "npm:7.23.6"],\ + ["@babel/helper-module-transforms", "virtual:b1f835a8d5cabf13736d410cd304861aa580e2a081848af0f12658b96394c1b260009535aac5c010d91d4835e94a1eddb84b1e55c2be1c85a4daab1ed42a46f7#npm:7.23.3"],\ + ["@babel/helpers", "npm:7.24.0"],\ + ["@babel/parser", "npm:7.24.0"],\ + ["@babel/template", "npm:7.24.0"],\ + ["@babel/traverse", "npm:7.24.0"],\ + ["@babel/types", "npm:7.24.0"],\ + ["convert-source-map", "npm:2.0.0"],\ + ["debug", "virtual:1ff4b5f90832ba0a9c93ba1223af226e44ba70c1126a3740d93562b97bc36544e896a5e95908196f7458713e6a6089a34bfc67362fc6df7fa093bd06c878be47#npm:4.3.4"],\ + ["gensync", "npm:1.0.0-beta.2"],\ + ["json5", "npm:2.2.3"],\ + ["semver", "npm:6.3.1"]\ + ],\ + "linkType": "HARD"\ }]\ ]],\ ["@babel/generator", [\ @@ -326,6 +350,24 @@ const RAW_RUNTIME_STATE = "@types/babel__core"\ ],\ "linkType": "HARD"\ + }],\ + ["virtual:b1f835a8d5cabf13736d410cd304861aa580e2a081848af0f12658b96394c1b260009535aac5c010d91d4835e94a1eddb84b1e55c2be1c85a4daab1ed42a46f7#npm:7.23.3", {\ + "packageLocation": "./.yarn/__virtual__/@babel-helper-module-transforms-virtual-9ffe21151a/0/cache/@babel-helper-module-transforms-npm-7.23.3-69078a931c-583fa580f8.zip/node_modules/@babel/helper-module-transforms/",\ + "packageDependencies": [\ + ["@babel/helper-module-transforms", "virtual:b1f835a8d5cabf13736d410cd304861aa580e2a081848af0f12658b96394c1b260009535aac5c010d91d4835e94a1eddb84b1e55c2be1c85a4daab1ed42a46f7#npm:7.23.3"],\ + ["@babel/core", "npm:7.24.0"],\ + ["@babel/helper-environment-visitor", "npm:7.22.20"],\ + ["@babel/helper-module-imports", "npm:7.22.15"],\ + ["@babel/helper-simple-access", "npm:7.22.5"],\ + ["@babel/helper-split-export-declaration", "npm:7.22.6"],\ + ["@babel/helper-validator-identifier", "npm:7.22.20"],\ + ["@types/babel__core", null]\ + ],\ + "packagePeers": [\ + "@babel/core",\ + "@types/babel__core"\ + ],\ + "linkType": "HARD"\ }]\ ]],\ ["@babel/helper-plugin-utils", [\ @@ -394,6 +436,16 @@ const RAW_RUNTIME_STATE = ["@babel/types", "npm:7.23.9"]\ ],\ "linkType": "HARD"\ + }],\ + ["npm:7.24.0", {\ + "packageLocation": "./.yarn/cache/@babel-helpers-npm-7.24.0-e1943c9c06-cc82012161.zip/node_modules/@babel/helpers/",\ + "packageDependencies": [\ + ["@babel/helpers", "npm:7.24.0"],\ + ["@babel/template", "npm:7.24.0"],\ + ["@babel/traverse", "npm:7.24.0"],\ + ["@babel/types", "npm:7.24.0"]\ + ],\ + "linkType": "HARD"\ }]\ ]],\ ["@babel/highlight", [\ @@ -416,6 +468,14 @@ const RAW_RUNTIME_STATE = ["@babel/types", "npm:7.23.9"]\ ],\ "linkType": "HARD"\ + }],\ + ["npm:7.24.0", {\ + "packageLocation": "./.yarn/cache/@babel-parser-npm-7.24.0-0a438e924c-3e5ebb903a.zip/node_modules/@babel/parser/",\ + "packageDependencies": [\ + ["@babel/parser", "npm:7.24.0"],\ + ["@babel/types", "npm:7.23.9"]\ + ],\ + "linkType": "HARD"\ }]\ ]],\ ["@babel/plugin-transform-react-jsx-self", [\ @@ -484,6 +544,16 @@ const RAW_RUNTIME_STATE = ["@babel/types", "npm:7.23.9"]\ ],\ "linkType": "HARD"\ + }],\ + ["npm:7.24.0", {\ + "packageLocation": "./.yarn/cache/@babel-template-npm-7.24.0-674650c96c-8c538338c7.zip/node_modules/@babel/template/",\ + "packageDependencies": [\ + ["@babel/template", "npm:7.24.0"],\ + ["@babel/code-frame", "npm:7.23.5"],\ + ["@babel/parser", "npm:7.24.0"],\ + ["@babel/types", "npm:7.24.0"]\ + ],\ + "linkType": "HARD"\ }]\ ]],\ ["@babel/traverse", [\ @@ -520,6 +590,23 @@ const RAW_RUNTIME_STATE = ["globals", "npm:11.12.0"]\ ],\ "linkType": "HARD"\ + }],\ + ["npm:7.24.0", {\ + "packageLocation": "./.yarn/cache/@babel-traverse-npm-7.24.0-52cc1f08fd-5cc482248e.zip/node_modules/@babel/traverse/",\ + "packageDependencies": [\ + ["@babel/traverse", "npm:7.24.0"],\ + ["@babel/code-frame", "npm:7.23.5"],\ + ["@babel/generator", "npm:7.23.6"],\ + ["@babel/helper-environment-visitor", "npm:7.22.20"],\ + ["@babel/helper-function-name", "npm:7.23.0"],\ + ["@babel/helper-hoist-variables", "npm:7.22.5"],\ + ["@babel/helper-split-export-declaration", "npm:7.22.6"],\ + ["@babel/parser", "npm:7.24.0"],\ + ["@babel/types", "npm:7.24.0"],\ + ["debug", "virtual:1ff4b5f90832ba0a9c93ba1223af226e44ba70c1126a3740d93562b97bc36544e896a5e95908196f7458713e6a6089a34bfc67362fc6df7fa093bd06c878be47#npm:4.3.4"],\ + ["globals", "npm:11.12.0"]\ + ],\ + "linkType": "HARD"\ }]\ ]],\ ["@babel/types", [\ @@ -541,6 +628,16 @@ const RAW_RUNTIME_STATE = ["to-fast-properties", "npm:2.0.0"]\ ],\ "linkType": "HARD"\ + }],\ + ["npm:7.24.0", {\ + "packageLocation": "./.yarn/cache/@babel-types-npm-7.24.0-a0508cb308-a0b4875ce2.zip/node_modules/@babel/types/",\ + "packageDependencies": [\ + ["@babel/types", "npm:7.24.0"],\ + ["@babel/helper-string-parser", "npm:7.23.4"],\ + ["@babel/helper-validator-identifier", "npm:7.22.20"],\ + ["to-fast-properties", "npm:2.0.0"]\ + ],\ + "linkType": "HARD"\ }]\ ]],\ ["@biomejs/biome", [\ @@ -968,6 +1065,15 @@ const RAW_RUNTIME_STATE = "linkType": "HARD"\ }]\ ]],\ + ["@istanbuljs/schema", [\ + ["npm:0.1.3", {\ + "packageLocation": "./.yarn/cache/@istanbuljs-schema-npm-0.1.3-466bd3eaaa-a9b1e49acd.zip/node_modules/@istanbuljs/schema/",\ + "packageDependencies": [\ + ["@istanbuljs/schema", "npm:0.1.3"]\ + ],\ + "linkType": "HARD"\ + }]\ + ]],\ ["@jest/schemas", [\ ["npm:29.6.3", {\ "packageLocation": "./.yarn/cache/@jest-schemas-npm-29.6.3-292730e442-910040425f.zip/node_modules/@jest/schemas/",\ @@ -1192,6 +1298,15 @@ const RAW_RUNTIME_STATE = "linkType": "HARD"\ }]\ ]],\ + ["@polka/url", [\ + ["npm:1.0.0-next.25", {\ + "packageLocation": "./.yarn/cache/@polka-url-npm-1.0.0-next.25-a523d9bd78-4ab1d7a371.zip/node_modules/@polka/url/",\ + "packageDependencies": [\ + ["@polka/url", "npm:1.0.0-next.25"]\ + ],\ + "linkType": "HARD"\ + }]\ + ]],\ ["@radix-ui/react-compose-refs", [\ ["npm:1.0.1", {\ "packageLocation": "./.yarn/cache/@radix-ui-react-compose-refs-npm-1.0.1-02d1046f7d-2b9a613b6d.zip/node_modules/@radix-ui/react-compose-refs/",\ @@ -1960,6 +2075,37 @@ const RAW_RUNTIME_STATE = "linkType": "HARD"\ }]\ ]],\ + ["@vitest/coverage-istanbul", [\ + ["npm:1.3.1", {\ + "packageLocation": "./.yarn/cache/@vitest-coverage-istanbul-npm-1.3.1-75e4bc4678-cfe308bf12.zip/node_modules/@vitest/coverage-istanbul/",\ + "packageDependencies": [\ + ["@vitest/coverage-istanbul", "npm:1.3.1"]\ + ],\ + "linkType": "SOFT"\ + }],\ + ["virtual:3786d9363fd0a547cdeba13dbbd7739095de182e2f1aa37c74f8398253205a5b62b2735c6799681aabf1f7716a4d0562fe89843678033b5bdce0191960fb23a9#npm:1.3.1", {\ + "packageLocation": "./.yarn/__virtual__/@vitest-coverage-istanbul-virtual-a33ab27680/0/cache/@vitest-coverage-istanbul-npm-1.3.1-75e4bc4678-cfe308bf12.zip/node_modules/@vitest/coverage-istanbul/",\ + "packageDependencies": [\ + ["@vitest/coverage-istanbul", "virtual:3786d9363fd0a547cdeba13dbbd7739095de182e2f1aa37c74f8398253205a5b62b2735c6799681aabf1f7716a4d0562fe89843678033b5bdce0191960fb23a9#npm:1.3.1"],\ + ["@types/vitest", null],\ + ["debug", "virtual:1ff4b5f90832ba0a9c93ba1223af226e44ba70c1126a3740d93562b97bc36544e896a5e95908196f7458713e6a6089a34bfc67362fc6df7fa093bd06c878be47#npm:4.3.4"],\ + ["istanbul-lib-coverage", "npm:3.2.2"],\ + ["istanbul-lib-instrument", "npm:6.0.2"],\ + ["istanbul-lib-report", "npm:3.0.1"],\ + ["istanbul-lib-source-maps", "npm:4.0.1"],\ + ["istanbul-reports", "npm:3.1.7"],\ + ["magicast", "npm:0.3.3"],\ + ["picocolors", "npm:1.0.0"],\ + ["test-exclude", "npm:6.0.0"],\ + ["vitest", "virtual:3786d9363fd0a547cdeba13dbbd7739095de182e2f1aa37c74f8398253205a5b62b2735c6799681aabf1f7716a4d0562fe89843678033b5bdce0191960fb23a9#npm:1.3.1"]\ + ],\ + "packagePeers": [\ + "@types/vitest",\ + "vitest"\ + ],\ + "linkType": "HARD"\ + }]\ + ]],\ ["@vitest/expect", [\ ["npm:1.3.1", {\ "packageLocation": "./.yarn/cache/@vitest-expect-npm-1.3.1-973071a540-7c2818b208.zip/node_modules/@vitest/expect/",\ @@ -2006,6 +2152,35 @@ const RAW_RUNTIME_STATE = "linkType": "HARD"\ }]\ ]],\ + ["@vitest/ui", [\ + ["npm:1.3.1", {\ + "packageLocation": "./.yarn/cache/@vitest-ui-npm-1.3.1-895f38c7e1-93fd623b04.zip/node_modules/@vitest/ui/",\ + "packageDependencies": [\ + ["@vitest/ui", "npm:1.3.1"]\ + ],\ + "linkType": "SOFT"\ + }],\ + ["virtual:3786d9363fd0a547cdeba13dbbd7739095de182e2f1aa37c74f8398253205a5b62b2735c6799681aabf1f7716a4d0562fe89843678033b5bdce0191960fb23a9#npm:1.3.1", {\ + "packageLocation": "./.yarn/__virtual__/@vitest-ui-virtual-8b647d4155/0/cache/@vitest-ui-npm-1.3.1-895f38c7e1-93fd623b04.zip/node_modules/@vitest/ui/",\ + "packageDependencies": [\ + ["@vitest/ui", "virtual:3786d9363fd0a547cdeba13dbbd7739095de182e2f1aa37c74f8398253205a5b62b2735c6799681aabf1f7716a4d0562fe89843678033b5bdce0191960fb23a9#npm:1.3.1"],\ + ["@types/vitest", null],\ + ["@vitest/utils", "npm:1.3.1"],\ + ["fast-glob", "npm:3.3.2"],\ + ["fflate", "npm:0.8.2"],\ + ["flatted", "npm:3.3.1"],\ + ["pathe", "npm:1.1.2"],\ + ["picocolors", "npm:1.0.0"],\ + ["sirv", "npm:2.0.4"],\ + ["vitest", "virtual:3786d9363fd0a547cdeba13dbbd7739095de182e2f1aa37c74f8398253205a5b62b2735c6799681aabf1f7716a4d0562fe89843678033b5bdce0191960fb23a9#npm:1.3.1"]\ + ],\ + "packagePeers": [\ + "@types/vitest",\ + "vitest"\ + ],\ + "linkType": "HARD"\ + }]\ + ]],\ ["@vitest/utils", [\ ["npm:1.3.1", {\ "packageLocation": "./.yarn/cache/@vitest-utils-npm-1.3.1-9057d8d83a-170c62e6c3.zip/node_modules/@vitest/utils/",\ @@ -4544,6 +4719,15 @@ const RAW_RUNTIME_STATE = "linkType": "HARD"\ }]\ ]],\ + ["fflate", [\ + ["npm:0.8.2", {\ + "packageLocation": "./.yarn/cache/fflate-npm-0.8.2-5129f303f0-2bd26ba6d2.zip/node_modules/fflate/",\ + "packageDependencies": [\ + ["fflate", "npm:0.8.2"]\ + ],\ + "linkType": "HARD"\ + }]\ + ]],\ ["file-entry-cache", [\ ["npm:6.0.1", {\ "packageLocation": "./.yarn/cache/file-entry-cache-npm-6.0.1-31965cf0af-099bb9d4ab.zip/node_modules/file-entry-cache/",\ @@ -5061,6 +5245,15 @@ const RAW_RUNTIME_STATE = "linkType": "HARD"\ }]\ ]],\ + ["html-escaper", [\ + ["npm:2.0.2", {\ + "packageLocation": "./.yarn/cache/html-escaper-npm-2.0.2-38e51ef294-034d74029d.zip/node_modules/html-escaper/",\ + "packageDependencies": [\ + ["html-escaper", "npm:2.0.2"]\ + ],\ + "linkType": "HARD"\ + }]\ + ]],\ ["http-cache-semantics", [\ ["npm:4.1.1", {\ "packageLocation": "./.yarn/cache/http-cache-semantics-npm-4.1.1-1120131375-362d5ed66b.zip/node_modules/http-cache-semantics/",\ @@ -5586,6 +5779,64 @@ const RAW_RUNTIME_STATE = "linkType": "HARD"\ }]\ ]],\ + ["istanbul-lib-coverage", [\ + ["npm:3.2.2", {\ + "packageLocation": "./.yarn/cache/istanbul-lib-coverage-npm-3.2.2-5c0526e059-40bbdd1e93.zip/node_modules/istanbul-lib-coverage/",\ + "packageDependencies": [\ + ["istanbul-lib-coverage", "npm:3.2.2"]\ + ],\ + "linkType": "HARD"\ + }]\ + ]],\ + ["istanbul-lib-instrument", [\ + ["npm:6.0.2", {\ + "packageLocation": "./.yarn/cache/istanbul-lib-instrument-npm-6.0.2-dac42bd5eb-3aee19be19.zip/node_modules/istanbul-lib-instrument/",\ + "packageDependencies": [\ + ["istanbul-lib-instrument", "npm:6.0.2"],\ + ["@babel/core", "npm:7.24.0"],\ + ["@babel/parser", "npm:7.23.9"],\ + ["@istanbuljs/schema", "npm:0.1.3"],\ + ["istanbul-lib-coverage", "npm:3.2.2"],\ + ["semver", "npm:7.6.0"]\ + ],\ + "linkType": "HARD"\ + }]\ + ]],\ + ["istanbul-lib-report", [\ + ["npm:3.0.1", {\ + "packageLocation": "./.yarn/cache/istanbul-lib-report-npm-3.0.1-b17446ab24-86a83421ca.zip/node_modules/istanbul-lib-report/",\ + "packageDependencies": [\ + ["istanbul-lib-report", "npm:3.0.1"],\ + ["istanbul-lib-coverage", "npm:3.2.2"],\ + ["make-dir", "npm:4.0.0"],\ + ["supports-color", "npm:7.2.0"]\ + ],\ + "linkType": "HARD"\ + }]\ + ]],\ + ["istanbul-lib-source-maps", [\ + ["npm:4.0.1", {\ + "packageLocation": "./.yarn/cache/istanbul-lib-source-maps-npm-4.0.1-af0f859df7-5526983462.zip/node_modules/istanbul-lib-source-maps/",\ + "packageDependencies": [\ + ["istanbul-lib-source-maps", "npm:4.0.1"],\ + ["debug", "virtual:1ff4b5f90832ba0a9c93ba1223af226e44ba70c1126a3740d93562b97bc36544e896a5e95908196f7458713e6a6089a34bfc67362fc6df7fa093bd06c878be47#npm:4.3.4"],\ + ["istanbul-lib-coverage", "npm:3.2.2"],\ + ["source-map", "npm:0.6.1"]\ + ],\ + "linkType": "HARD"\ + }]\ + ]],\ + ["istanbul-reports", [\ + ["npm:3.1.7", {\ + "packageLocation": "./.yarn/cache/istanbul-reports-npm-3.1.7-356486c0f4-f1faaa4684.zip/node_modules/istanbul-reports/",\ + "packageDependencies": [\ + ["istanbul-reports", "npm:3.1.7"],\ + ["html-escaper", "npm:2.0.2"],\ + ["istanbul-lib-report", "npm:3.0.1"]\ + ],\ + "linkType": "HARD"\ + }]\ + ]],\ ["iterator.prototype", [\ ["npm:1.1.2", {\ "packageLocation": "./.yarn/cache/iterator.prototype-npm-1.1.2-009f234a21-b5013967ad.zip/node_modules/iterator.prototype/",\ @@ -6087,6 +6338,28 @@ const RAW_RUNTIME_STATE = "linkType": "HARD"\ }]\ ]],\ + ["magicast", [\ + ["npm:0.3.3", {\ + "packageLocation": "./.yarn/cache/magicast-npm-0.3.3-f641a80583-04af6f60d8.zip/node_modules/magicast/",\ + "packageDependencies": [\ + ["magicast", "npm:0.3.3"],\ + ["@babel/parser", "npm:7.24.0"],\ + ["@babel/types", "npm:7.23.9"],\ + ["source-map-js", "npm:1.0.2"]\ + ],\ + "linkType": "HARD"\ + }]\ + ]],\ + ["make-dir", [\ + ["npm:4.0.0", {\ + "packageLocation": "./.yarn/cache/make-dir-npm-4.0.0-ec3cd921cc-bf0731a2dd.zip/node_modules/make-dir/",\ + "packageDependencies": [\ + ["make-dir", "npm:4.0.0"],\ + ["semver", "npm:7.6.0"]\ + ],\ + "linkType": "HARD"\ + }]\ + ]],\ ["make-fetch-happen", [\ ["npm:13.0.0", {\ "packageLocation": "./.yarn/cache/make-fetch-happen-npm-13.0.0-f87a92bb87-ded5a91a02.zip/node_modules/make-fetch-happen/",\ @@ -6342,6 +6615,15 @@ const RAW_RUNTIME_STATE = "linkType": "HARD"\ }]\ ]],\ + ["mrmime", [\ + ["npm:2.0.0", {\ + "packageLocation": "./.yarn/cache/mrmime-npm-2.0.0-0326eb1458-8d95f714ea.zip/node_modules/mrmime/",\ + "packageDependencies": [\ + ["mrmime", "npm:2.0.0"]\ + ],\ + "linkType": "HARD"\ + }]\ + ]],\ ["ms", [\ ["npm:2.1.2", {\ "packageLocation": "./.yarn/cache/ms-npm-2.1.2-ec0c1512ff-673cdb2c31.zip/node_modules/ms/",\ @@ -6936,6 +7218,8 @@ const RAW_RUNTIME_STATE = ["@types/react", "npm:18.2.57"],\ ["@types/react-dom", "npm:18.2.19"],\ ["@vitejs/plugin-react", "virtual:3786d9363fd0a547cdeba13dbbd7739095de182e2f1aa37c74f8398253205a5b62b2735c6799681aabf1f7716a4d0562fe89843678033b5bdce0191960fb23a9#npm:4.2.1"],\ + ["@vitest/coverage-istanbul", "virtual:3786d9363fd0a547cdeba13dbbd7739095de182e2f1aa37c74f8398253205a5b62b2735c6799681aabf1f7716a4d0562fe89843678033b5bdce0191960fb23a9#npm:1.3.1"],\ + ["@vitest/ui", "virtual:3786d9363fd0a547cdeba13dbbd7739095de182e2f1aa37c74f8398253205a5b62b2735c6799681aabf1f7716a4d0562fe89843678033b5bdce0191960fb23a9#npm:1.3.1"],\ ["@yarnpkg/sdks", "npm:3.1.0"],\ ["antd", "virtual:3786d9363fd0a547cdeba13dbbd7739095de182e2f1aa37c74f8398253205a5b62b2735c6799681aabf1f7716a4d0562fe89843678033b5bdce0191960fb23a9#npm:4.24.15"],\ ["classnames", "npm:2.5.1"],\ @@ -8919,6 +9203,18 @@ const RAW_RUNTIME_STATE = "linkType": "HARD"\ }]\ ]],\ + ["sirv", [\ + ["npm:2.0.4", {\ + "packageLocation": "./.yarn/cache/sirv-npm-2.0.4-cace6fe955-24f42cf068.zip/node_modules/sirv/",\ + "packageDependencies": [\ + ["sirv", "npm:2.0.4"],\ + ["@polka/url", "npm:1.0.0-next.25"],\ + ["mrmime", "npm:2.0.0"],\ + ["totalist", "npm:3.0.1"]\ + ],\ + "linkType": "HARD"\ + }]\ + ]],\ ["slash", [\ ["npm:3.0.0", {\ "packageLocation": "./.yarn/cache/slash-npm-3.0.0-b87de2279a-94a93fff61.zip/node_modules/slash/",\ @@ -8998,6 +9294,13 @@ const RAW_RUNTIME_STATE = ["source-map", "npm:0.5.7"]\ ],\ "linkType": "HARD"\ + }],\ + ["npm:0.6.1", {\ + "packageLocation": "./.yarn/cache/source-map-npm-0.6.1-1a3621db16-59ef7462f1.zip/node_modules/source-map/",\ + "packageDependencies": [\ + ["source-map", "npm:0.6.1"]\ + ],\ + "linkType": "HARD"\ }]\ ]],\ ["source-map-js", [\ @@ -9358,6 +9661,18 @@ const RAW_RUNTIME_STATE = "linkType": "HARD"\ }]\ ]],\ + ["test-exclude", [\ + ["npm:6.0.0", {\ + "packageLocation": "./.yarn/cache/test-exclude-npm-6.0.0-3fb03d69df-8fccb2cb6c.zip/node_modules/test-exclude/",\ + "packageDependencies": [\ + ["test-exclude", "npm:6.0.0"],\ + ["@istanbuljs/schema", "npm:0.1.3"],\ + ["glob", "npm:7.2.3"],\ + ["minimatch", "npm:3.1.2"]\ + ],\ + "linkType": "HARD"\ + }]\ + ]],\ ["text-table", [\ ["npm:0.2.0", {\ "packageLocation": "./.yarn/cache/text-table-npm-0.2.0-d92a778b59-4383b5baae.zip/node_modules/text-table/",\ @@ -9449,6 +9764,15 @@ const RAW_RUNTIME_STATE = "linkType": "HARD"\ }]\ ]],\ + ["totalist", [\ + ["npm:3.0.1", {\ + "packageLocation": "./.yarn/cache/totalist-npm-3.0.1-91e71f3baa-5132d562cf.zip/node_modules/totalist/",\ + "packageDependencies": [\ + ["totalist", "npm:3.0.1"]\ + ],\ + "linkType": "HARD"\ + }]\ + ]],\ ["tough-cookie", [\ ["npm:4.1.3", {\ "packageLocation": "./.yarn/cache/tough-cookie-npm-4.1.3-08285e2518-cf148c359b.zip/node_modules/tough-cookie/",\ @@ -10057,7 +10381,7 @@ const RAW_RUNTIME_STATE = ["@vitest/runner", "npm:1.3.1"],\ ["@vitest/snapshot", "npm:1.3.1"],\ ["@vitest/spy", "npm:1.3.1"],\ - ["@vitest/ui", null],\ + ["@vitest/ui", "virtual:3786d9363fd0a547cdeba13dbbd7739095de182e2f1aa37c74f8398253205a5b62b2735c6799681aabf1f7716a4d0562fe89843678033b5bdce0191960fb23a9#npm:1.3.1"],\ ["@vitest/utils", "npm:1.3.1"],\ ["acorn-walk", "npm:8.3.2"],\ ["chai", "npm:4.4.1"],\ diff --git a/.vscode/extensions.json b/.vscode/extensions.json index 17e87a6..73308a6 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -8,6 +8,7 @@ "vitest.explorer", "wallabyjs.wallaby-vscode", "file-icons.file-icons", - "usernamehw.errorlens" + "usernamehw.errorlens", + "ryanluker.vscode-coverage-gutters" ] } diff --git a/.vscode/settings.json b/.vscode/settings.json index fff912f..eec50fe 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -6,6 +6,10 @@ }, "typescript.tsdk": ".yarn/sdks/typescript/lib", "typescript.enablePromptUseWorkspaceTsdk": true, + "[typescript]": { + "editor.defaultFormatter": "Jota0222.multi-formatter", + "multiFormatter.formatterList": ["biomejs.biome", "esbenp.prettier-vscode"] + }, "[typescriptreact]": { "editor.defaultFormatter": "Jota0222.multi-formatter", "multiFormatter.formatterList": ["biomejs.biome", "esbenp.prettier-vscode"] @@ -16,5 +20,5 @@ "vitest.watchOnStartup": true, "vitest.showFailMessages": true, "vitest.enable": true, - "vitest.commandLine": "yarn test:watch" + "vitest.commandLine": "yarn test:coverage:watch" } diff --git a/.yarn/cache/@babel-core-npm-7.24.0-b1f835a8d5-1e22215cc8.zip b/.yarn/cache/@babel-core-npm-7.24.0-b1f835a8d5-1e22215cc8.zip new file mode 100644 index 0000000..94d20ac Binary files /dev/null and b/.yarn/cache/@babel-core-npm-7.24.0-b1f835a8d5-1e22215cc8.zip differ diff --git a/.yarn/cache/@babel-helpers-npm-7.24.0-e1943c9c06-cc82012161.zip b/.yarn/cache/@babel-helpers-npm-7.24.0-e1943c9c06-cc82012161.zip new file mode 100644 index 0000000..a860f76 Binary files /dev/null and b/.yarn/cache/@babel-helpers-npm-7.24.0-e1943c9c06-cc82012161.zip differ diff --git a/.yarn/cache/@babel-parser-npm-7.24.0-0a438e924c-3e5ebb903a.zip b/.yarn/cache/@babel-parser-npm-7.24.0-0a438e924c-3e5ebb903a.zip new file mode 100644 index 0000000..3ca3bc3 Binary files /dev/null and b/.yarn/cache/@babel-parser-npm-7.24.0-0a438e924c-3e5ebb903a.zip differ diff --git a/.yarn/cache/@babel-template-npm-7.24.0-674650c96c-8c538338c7.zip b/.yarn/cache/@babel-template-npm-7.24.0-674650c96c-8c538338c7.zip new file mode 100644 index 0000000..e882fc1 Binary files /dev/null and b/.yarn/cache/@babel-template-npm-7.24.0-674650c96c-8c538338c7.zip differ diff --git a/.yarn/cache/@babel-traverse-npm-7.24.0-52cc1f08fd-5cc482248e.zip b/.yarn/cache/@babel-traverse-npm-7.24.0-52cc1f08fd-5cc482248e.zip new file mode 100644 index 0000000..282f53b Binary files /dev/null and b/.yarn/cache/@babel-traverse-npm-7.24.0-52cc1f08fd-5cc482248e.zip differ diff --git a/.yarn/cache/@babel-types-npm-7.24.0-a0508cb308-a0b4875ce2.zip b/.yarn/cache/@babel-types-npm-7.24.0-a0508cb308-a0b4875ce2.zip new file mode 100644 index 0000000..c2e3dfc Binary files /dev/null and b/.yarn/cache/@babel-types-npm-7.24.0-a0508cb308-a0b4875ce2.zip differ diff --git a/.yarn/cache/@istanbuljs-schema-npm-0.1.3-466bd3eaaa-a9b1e49acd.zip b/.yarn/cache/@istanbuljs-schema-npm-0.1.3-466bd3eaaa-a9b1e49acd.zip new file mode 100644 index 0000000..77850e7 Binary files /dev/null and b/.yarn/cache/@istanbuljs-schema-npm-0.1.3-466bd3eaaa-a9b1e49acd.zip differ diff --git a/.yarn/cache/@polka-url-npm-1.0.0-next.25-a523d9bd78-4ab1d7a371.zip b/.yarn/cache/@polka-url-npm-1.0.0-next.25-a523d9bd78-4ab1d7a371.zip new file mode 100644 index 0000000..4d233ed Binary files /dev/null and b/.yarn/cache/@polka-url-npm-1.0.0-next.25-a523d9bd78-4ab1d7a371.zip differ diff --git a/.yarn/cache/@vitest-coverage-istanbul-npm-1.3.1-75e4bc4678-cfe308bf12.zip b/.yarn/cache/@vitest-coverage-istanbul-npm-1.3.1-75e4bc4678-cfe308bf12.zip new file mode 100644 index 0000000..db39c8f Binary files /dev/null and b/.yarn/cache/@vitest-coverage-istanbul-npm-1.3.1-75e4bc4678-cfe308bf12.zip differ diff --git a/.yarn/cache/@vitest-ui-npm-1.3.1-895f38c7e1-93fd623b04.zip b/.yarn/cache/@vitest-ui-npm-1.3.1-895f38c7e1-93fd623b04.zip new file mode 100644 index 0000000..0412dbd Binary files /dev/null and b/.yarn/cache/@vitest-ui-npm-1.3.1-895f38c7e1-93fd623b04.zip differ diff --git a/.yarn/cache/fflate-npm-0.8.2-5129f303f0-2bd26ba6d2.zip b/.yarn/cache/fflate-npm-0.8.2-5129f303f0-2bd26ba6d2.zip new file mode 100644 index 0000000..346d149 Binary files /dev/null and b/.yarn/cache/fflate-npm-0.8.2-5129f303f0-2bd26ba6d2.zip differ diff --git a/.yarn/cache/html-escaper-npm-2.0.2-38e51ef294-034d74029d.zip b/.yarn/cache/html-escaper-npm-2.0.2-38e51ef294-034d74029d.zip new file mode 100644 index 0000000..3137a4e Binary files /dev/null and b/.yarn/cache/html-escaper-npm-2.0.2-38e51ef294-034d74029d.zip differ diff --git a/.yarn/cache/istanbul-lib-coverage-npm-3.2.2-5c0526e059-40bbdd1e93.zip b/.yarn/cache/istanbul-lib-coverage-npm-3.2.2-5c0526e059-40bbdd1e93.zip new file mode 100644 index 0000000..960ed7a Binary files /dev/null and b/.yarn/cache/istanbul-lib-coverage-npm-3.2.2-5c0526e059-40bbdd1e93.zip differ diff --git a/.yarn/cache/istanbul-lib-instrument-npm-6.0.2-dac42bd5eb-3aee19be19.zip b/.yarn/cache/istanbul-lib-instrument-npm-6.0.2-dac42bd5eb-3aee19be19.zip new file mode 100644 index 0000000..dff3800 Binary files /dev/null and b/.yarn/cache/istanbul-lib-instrument-npm-6.0.2-dac42bd5eb-3aee19be19.zip differ diff --git a/.yarn/cache/istanbul-lib-report-npm-3.0.1-b17446ab24-86a83421ca.zip b/.yarn/cache/istanbul-lib-report-npm-3.0.1-b17446ab24-86a83421ca.zip new file mode 100644 index 0000000..47a0ef1 Binary files /dev/null and b/.yarn/cache/istanbul-lib-report-npm-3.0.1-b17446ab24-86a83421ca.zip differ diff --git a/.yarn/cache/istanbul-lib-source-maps-npm-4.0.1-af0f859df7-5526983462.zip b/.yarn/cache/istanbul-lib-source-maps-npm-4.0.1-af0f859df7-5526983462.zip new file mode 100644 index 0000000..cd5d986 Binary files /dev/null and b/.yarn/cache/istanbul-lib-source-maps-npm-4.0.1-af0f859df7-5526983462.zip differ diff --git a/.yarn/cache/istanbul-reports-npm-3.1.7-356486c0f4-f1faaa4684.zip b/.yarn/cache/istanbul-reports-npm-3.1.7-356486c0f4-f1faaa4684.zip new file mode 100644 index 0000000..878079f Binary files /dev/null and b/.yarn/cache/istanbul-reports-npm-3.1.7-356486c0f4-f1faaa4684.zip differ diff --git a/.yarn/cache/magicast-npm-0.3.3-f641a80583-04af6f60d8.zip b/.yarn/cache/magicast-npm-0.3.3-f641a80583-04af6f60d8.zip new file mode 100644 index 0000000..b3e5cc8 Binary files /dev/null and b/.yarn/cache/magicast-npm-0.3.3-f641a80583-04af6f60d8.zip differ diff --git a/.yarn/cache/make-dir-npm-4.0.0-ec3cd921cc-bf0731a2dd.zip b/.yarn/cache/make-dir-npm-4.0.0-ec3cd921cc-bf0731a2dd.zip new file mode 100644 index 0000000..2a141ef Binary files /dev/null and b/.yarn/cache/make-dir-npm-4.0.0-ec3cd921cc-bf0731a2dd.zip differ diff --git a/.yarn/cache/mrmime-npm-2.0.0-0326eb1458-8d95f714ea.zip b/.yarn/cache/mrmime-npm-2.0.0-0326eb1458-8d95f714ea.zip new file mode 100644 index 0000000..0257cbf Binary files /dev/null and b/.yarn/cache/mrmime-npm-2.0.0-0326eb1458-8d95f714ea.zip differ diff --git a/.yarn/cache/sirv-npm-2.0.4-cace6fe955-24f42cf068.zip b/.yarn/cache/sirv-npm-2.0.4-cace6fe955-24f42cf068.zip new file mode 100644 index 0000000..50527a3 Binary files /dev/null and b/.yarn/cache/sirv-npm-2.0.4-cace6fe955-24f42cf068.zip differ diff --git a/.yarn/cache/source-map-npm-0.6.1-1a3621db16-59ef7462f1.zip b/.yarn/cache/source-map-npm-0.6.1-1a3621db16-59ef7462f1.zip new file mode 100644 index 0000000..1f5147c Binary files /dev/null and b/.yarn/cache/source-map-npm-0.6.1-1a3621db16-59ef7462f1.zip differ diff --git a/.yarn/cache/test-exclude-npm-6.0.0-3fb03d69df-8fccb2cb6c.zip b/.yarn/cache/test-exclude-npm-6.0.0-3fb03d69df-8fccb2cb6c.zip new file mode 100644 index 0000000..57a28b7 Binary files /dev/null and b/.yarn/cache/test-exclude-npm-6.0.0-3fb03d69df-8fccb2cb6c.zip differ diff --git a/.yarn/cache/totalist-npm-3.0.1-91e71f3baa-5132d562cf.zip b/.yarn/cache/totalist-npm-3.0.1-91e71f3baa-5132d562cf.zip new file mode 100644 index 0000000..8683d1c Binary files /dev/null and b/.yarn/cache/totalist-npm-3.0.1-91e71f3baa-5132d562cf.zip differ diff --git a/biome.json b/biome.json index 92c6a89..0eb10a1 100644 --- a/biome.json +++ b/biome.json @@ -7,7 +7,8 @@ "ignore": [ ".prettierrc.js", ".yarn/*", - "vitest.config.mts" + "vitest.config.mts", + "src/__tests__/coverage/*" ] }, "linter": { diff --git a/package.json b/package.json index 81a9655..bd816e2 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,11 @@ "format": "yarn _conc 'yarn:format:ts:biome' 'yarn:format:ts:imports'", "format:fix": "yarn format:ts:fix:biome && yarn format:ts:fix:imports", "test": "vitest run", - "test:watch": "vitest", + "test:coverage": "yarn test --coverage", + "test:watch": "vitest watch", + "test:coverage:watch": "yarn test:watch --coverage", + "test:ui:watch": "vitest watch --ui", + "test:coverage:ui:watch": "yarn test:ui:watch --coverage", "build:ts": "next build", "build:ts:watch": "next dev", "build:scss": "yarn typed-scss-modules src --banner '// This file is automatically generated. Do not edit.'", @@ -80,6 +84,8 @@ "@types/lodash": "^4", "@types/node": "20.11.19", "@vitejs/plugin-react": "^4.2.1", + "@vitest/coverage-istanbul": "^1.3.1", + "@vitest/ui": "^1.3.1", "@yarnpkg/sdks": "^3.1.0", "concurrently": "^8.2.2", "eslint": "^8.56.0", diff --git a/vitest.config.mts b/vitest.config.mts index 2b57e1b..273ac56 100644 --- a/vitest.config.mts +++ b/vitest.config.mts @@ -1,11 +1,33 @@ -import { defineConfig } from 'vitest/config' -import react from '@vitejs/plugin-react' - +import { configDefaults, defineConfig } from "vitest/config"; +import react from "@vitejs/plugin-react"; + export default defineConfig({ plugins: [react()], test: { - environment: 'jsdom', - globals:true, - setupFiles: "src/setupTests.ts" + environment: "jsdom", + globals: true, + setupFiles: "src/setupTests.ts", + reporters: ["default", "html", "json"], + coverage: { + exclude: [ + ...(configDefaults.coverage.exclude || []), + "html/**", + "build/**/*", + ".yarn/**/*", + "next.config.js", + "**/.{idea,git,cache,output,temp,yarn}/**", + ], + provider: "istanbul", + reporter: ["json", "text", "html", "json-summary", "lcov"], + reportsDirectory: "./src/__tests__/coverage", + reportOnFailure: true, + thresholds: { + autoUpdate: true, + statements: 9, + branches: 5, + functions: 8.57, + lines: 9.37, + }, + }, }, -}) \ No newline at end of file +}); \ No newline at end of file diff --git a/yarn.lock b/yarn.lock index 2a66202..fcdea94 100644 --- a/yarn.lock +++ b/yarn.lock @@ -126,6 +126,29 @@ __metadata: languageName: node linkType: hard +"@babel/core@npm:^7.23.9": + version: 7.24.0 + resolution: "@babel/core@npm:7.24.0" + dependencies: + "@ampproject/remapping": "npm:^2.2.0" + "@babel/code-frame": "npm:^7.23.5" + "@babel/generator": "npm:^7.23.6" + "@babel/helper-compilation-targets": "npm:^7.23.6" + "@babel/helper-module-transforms": "npm:^7.23.3" + "@babel/helpers": "npm:^7.24.0" + "@babel/parser": "npm:^7.24.0" + "@babel/template": "npm:^7.24.0" + "@babel/traverse": "npm:^7.24.0" + "@babel/types": "npm:^7.24.0" + convert-source-map: "npm:^2.0.0" + debug: "npm:^4.1.0" + gensync: "npm:^1.0.0-beta.2" + json5: "npm:^2.2.3" + semver: "npm:^6.3.1" + checksum: 10/1e22215cc89e061e0cbfed72f265ad24d363f3e9b24b51e9c4cf3ccb9222260a29a1c1e62edb439cb7e2229a3fce924edd43300500416613236c13fc8d62a947 + languageName: node + linkType: hard + "@babel/generator@npm:7.17.7": version: 7.17.7 resolution: "@babel/generator@npm:7.17.7" @@ -269,6 +292,17 @@ __metadata: languageName: node linkType: hard +"@babel/helpers@npm:^7.24.0": + version: 7.24.0 + resolution: "@babel/helpers@npm:7.24.0" + dependencies: + "@babel/template": "npm:^7.24.0" + "@babel/traverse": "npm:^7.24.0" + "@babel/types": "npm:^7.24.0" + checksum: 10/cc82012161b30185c2698da359c7311cf019f0932f8fcb805e985fec9e0053c354f0534dc9961f3170eee579df6724eecd34b0f5ffaa155cdd456af59fbff86e + languageName: node + linkType: hard + "@babel/highlight@npm:^7.23.4": version: 7.23.4 resolution: "@babel/highlight@npm:7.23.4" @@ -289,6 +323,15 @@ __metadata: languageName: node linkType: hard +"@babel/parser@npm:^7.23.6, @babel/parser@npm:^7.24.0": + version: 7.24.0 + resolution: "@babel/parser@npm:7.24.0" + bin: + parser: ./bin/babel-parser.js + checksum: 10/3e5ebb903a6f71629a9d0226743e37fe3d961e79911d2698b243637f66c4df7e3e0a42c07838bc0e7cc9fcd585d9be8f4134a145b9459ee4a459420fb0d1360b + languageName: node + linkType: hard + "@babel/plugin-transform-react-jsx-self@npm:^7.23.3": version: 7.23.3 resolution: "@babel/plugin-transform-react-jsx-self@npm:7.23.3" @@ -331,6 +374,17 @@ __metadata: languageName: node linkType: hard +"@babel/template@npm:^7.24.0": + version: 7.24.0 + resolution: "@babel/template@npm:7.24.0" + dependencies: + "@babel/code-frame": "npm:^7.23.5" + "@babel/parser": "npm:^7.24.0" + "@babel/types": "npm:^7.24.0" + checksum: 10/8c538338c7de8fac8ada691a5a812bdcbd60bd4a4eb5adae2cc9ee19773e8fb1a724312a00af9e1ce49056ffd3c3475e7287b5668cf6360bfb3f8ac827a06ffe + languageName: node + linkType: hard + "@babel/traverse@npm:7.23.2": version: 7.23.2 resolution: "@babel/traverse@npm:7.23.2" @@ -367,6 +421,24 @@ __metadata: languageName: node linkType: hard +"@babel/traverse@npm:^7.24.0": + version: 7.24.0 + resolution: "@babel/traverse@npm:7.24.0" + dependencies: + "@babel/code-frame": "npm:^7.23.5" + "@babel/generator": "npm:^7.23.6" + "@babel/helper-environment-visitor": "npm:^7.22.20" + "@babel/helper-function-name": "npm:^7.23.0" + "@babel/helper-hoist-variables": "npm:^7.22.5" + "@babel/helper-split-export-declaration": "npm:^7.22.6" + "@babel/parser": "npm:^7.24.0" + "@babel/types": "npm:^7.24.0" + debug: "npm:^4.3.1" + globals: "npm:^11.1.0" + checksum: 10/5cc482248ebb79adcbcf021aab4e0e95bafe2a1736ee4b46abe6f88b59848ad73e15e219db8f06c9a33a14c64257e5b47e53876601e998a8c596accb1b7f4996 + languageName: node + linkType: hard + "@babel/types@npm:7.17.0": version: 7.17.0 resolution: "@babel/types@npm:7.17.0" @@ -388,6 +460,17 @@ __metadata: languageName: node linkType: hard +"@babel/types@npm:^7.24.0": + version: 7.24.0 + resolution: "@babel/types@npm:7.24.0" + dependencies: + "@babel/helper-string-parser": "npm:^7.23.4" + "@babel/helper-validator-identifier": "npm:^7.22.20" + to-fast-properties: "npm:^2.0.0" + checksum: 10/a0b4875ce2e132f9daff0d5b27c7f4c4fcc97f2b084bdc5834e92c9d32592778489029e65d99d00c406da612d87b72d7a236c0afccaa1435c028d0c94c9b6da4 + languageName: node + linkType: hard + "@biomejs/biome@npm:1.5.3": version: 1.5.3 resolution: "@biomejs/biome@npm:1.5.3" @@ -735,6 +818,13 @@ __metadata: languageName: node linkType: hard +"@istanbuljs/schema@npm:^0.1.2, @istanbuljs/schema@npm:^0.1.3": + version: 0.1.3 + resolution: "@istanbuljs/schema@npm:0.1.3" + checksum: 10/a9b1e49acdf5efc2f5b2359f2df7f90c5c725f2656f16099e8b2cd3a000619ecca9fc48cf693ba789cf0fd989f6e0df6a22bc05574be4223ecdbb7997d04384b + languageName: node + linkType: hard + "@jest/schemas@npm:^29.6.3": version: 29.6.3 resolution: "@jest/schemas@npm:29.6.3" @@ -921,6 +1011,13 @@ __metadata: languageName: node linkType: hard +"@polka/url@npm:^1.0.0-next.24": + version: 1.0.0-next.25 + resolution: "@polka/url@npm:1.0.0-next.25" + checksum: 10/4ab1d7a37163139c0e7bfc9d1e3f6a2a0db91a78b9f0a21f571d6aec2cdaeaacced744d47886c117aa7579aa5694b303fe3e0bd1922bb9cb3ce6bf7c2dc09801 + languageName: node + linkType: hard + "@radix-ui/react-compose-refs@npm:1.0.1": version: 1.0.1 resolution: "@radix-ui/react-compose-refs@npm:1.0.1" @@ -1499,6 +1596,25 @@ __metadata: languageName: node linkType: hard +"@vitest/coverage-istanbul@npm:^1.3.1": + version: 1.3.1 + resolution: "@vitest/coverage-istanbul@npm:1.3.1" + dependencies: + debug: "npm:^4.3.4" + istanbul-lib-coverage: "npm:^3.2.2" + istanbul-lib-instrument: "npm:^6.0.1" + istanbul-lib-report: "npm:^3.0.1" + istanbul-lib-source-maps: "npm:^4.0.1" + istanbul-reports: "npm:^3.1.6" + magicast: "npm:^0.3.3" + picocolors: "npm:^1.0.0" + test-exclude: "npm:^6.0.0" + peerDependencies: + vitest: 1.3.1 + checksum: 10/cfe308bf12d5b32098d58275dae3b5224f84055bc3076626d3462f7d139b94547ae30cf6d97a24d1ac69883024a081e9fc377390b880a98352dd5fc0fc4a9b40 + languageName: node + linkType: hard + "@vitest/expect@npm:1.3.1": version: 1.3.1 resolution: "@vitest/expect@npm:1.3.1" @@ -1541,6 +1657,23 @@ __metadata: languageName: node linkType: hard +"@vitest/ui@npm:^1.3.1": + version: 1.3.1 + resolution: "@vitest/ui@npm:1.3.1" + dependencies: + "@vitest/utils": "npm:1.3.1" + fast-glob: "npm:^3.3.2" + fflate: "npm:^0.8.1" + flatted: "npm:^3.2.9" + pathe: "npm:^1.1.1" + picocolors: "npm:^1.0.0" + sirv: "npm:^2.0.4" + peerDependencies: + vitest: 1.3.1 + checksum: 10/93fd623b04f73ef424401232981aa50b7612a2cb5705ea627c4a3c5f74f9e6499dcd1af758e9b59d767b08ad6dc23c54deb88f98564a1ee76eeb0bcc548aa150 + languageName: node + linkType: hard + "@vitest/utils@npm:1.3.1": version: 1.3.1 resolution: "@vitest/utils@npm:1.3.1" @@ -2626,7 +2759,7 @@ __metadata: languageName: node linkType: hard -"debug@npm:4, debug@npm:4.3.4, debug@npm:^4.1.0, debug@npm:^4.3.1, debug@npm:^4.3.2, debug@npm:^4.3.4": +"debug@npm:4, debug@npm:4.3.4, debug@npm:^4.1.0, debug@npm:^4.1.1, debug@npm:^4.3.1, debug@npm:^4.3.2, debug@npm:^4.3.4": version: 4.3.4 resolution: "debug@npm:4.3.4" dependencies: @@ -3693,7 +3826,7 @@ __metadata: languageName: node linkType: hard -"fast-glob@npm:^3.2.2, fast-glob@npm:^3.2.9, fast-glob@npm:^3.3.1": +"fast-glob@npm:^3.2.2, fast-glob@npm:^3.2.9, fast-glob@npm:^3.3.1, fast-glob@npm:^3.3.2": version: 3.3.2 resolution: "fast-glob@npm:3.3.2" dependencies: @@ -3729,6 +3862,13 @@ __metadata: languageName: node linkType: hard +"fflate@npm:^0.8.1": + version: 0.8.2 + resolution: "fflate@npm:0.8.2" + checksum: 10/2bd26ba6d235d428de793c6a0cd1aaa96a06269ebd4e21b46c8fd1bd136abc631acf27e188d47c3936db090bf3e1ede11d15ce9eae9bffdc4bfe1b9dc66ca9cb + languageName: node + linkType: hard + "file-entry-cache@npm:^6.0.1": version: 6.0.1 resolution: "file-entry-cache@npm:6.0.1" @@ -4001,7 +4141,7 @@ __metadata: languageName: node linkType: hard -"glob@npm:^7.1.3, glob@npm:^7.2.0": +"glob@npm:^7.1.3, glob@npm:^7.1.4, glob@npm:^7.2.0": version: 7.2.3 resolution: "glob@npm:7.2.3" dependencies: @@ -4198,6 +4338,13 @@ __metadata: languageName: node linkType: hard +"html-escaper@npm:^2.0.0": + version: 2.0.2 + resolution: "html-escaper@npm:2.0.2" + checksum: 10/034d74029dcca544a34fb6135e98d427acd73019796ffc17383eaa3ec2fe1c0471dcbbc8f8ed39e46e86d43ccd753a160631615e4048285e313569609b66d5b7 + languageName: node + linkType: hard + "http-cache-semantics@npm:^4.0.0, http-cache-semantics@npm:^4.1.1": version: 4.1.1 resolution: "http-cache-semantics@npm:4.1.1" @@ -4642,6 +4789,58 @@ __metadata: languageName: node linkType: hard +"istanbul-lib-coverage@npm:^3.0.0, istanbul-lib-coverage@npm:^3.2.0, istanbul-lib-coverage@npm:^3.2.2": + version: 3.2.2 + resolution: "istanbul-lib-coverage@npm:3.2.2" + checksum: 10/40bbdd1e937dfd8c830fa286d0f665e81b7a78bdabcd4565f6d5667c99828bda3db7fb7ac6b96a3e2e8a2461ddbc5452d9f8bc7d00cb00075fa6a3e99f5b6a81 + languageName: node + linkType: hard + +"istanbul-lib-instrument@npm:^6.0.1": + version: 6.0.2 + resolution: "istanbul-lib-instrument@npm:6.0.2" + dependencies: + "@babel/core": "npm:^7.23.9" + "@babel/parser": "npm:^7.23.9" + "@istanbuljs/schema": "npm:^0.1.3" + istanbul-lib-coverage: "npm:^3.2.0" + semver: "npm:^7.5.4" + checksum: 10/3aee19be199350182827679a137e1df142a306e9d7e20bb5badfd92ecc9023a7d366bc68e7c66e36983654a02a67401d75d8debf29fc6d4b83670fde69a594fc + languageName: node + linkType: hard + +"istanbul-lib-report@npm:^3.0.0, istanbul-lib-report@npm:^3.0.1": + version: 3.0.1 + resolution: "istanbul-lib-report@npm:3.0.1" + dependencies: + istanbul-lib-coverage: "npm:^3.0.0" + make-dir: "npm:^4.0.0" + supports-color: "npm:^7.1.0" + checksum: 10/86a83421ca1cf2109a9f6d193c06c31ef04a45e72a74579b11060b1e7bb9b6337a4e6f04abfb8857e2d569c271273c65e855ee429376a0d7c91ad91db42accd1 + languageName: node + linkType: hard + +"istanbul-lib-source-maps@npm:^4.0.1": + version: 4.0.1 + resolution: "istanbul-lib-source-maps@npm:4.0.1" + dependencies: + debug: "npm:^4.1.1" + istanbul-lib-coverage: "npm:^3.0.0" + source-map: "npm:^0.6.1" + checksum: 10/5526983462799aced011d776af166e350191b816821ea7bcf71cab3e5272657b062c47dc30697a22a43656e3ced78893a42de677f9ccf276a28c913190953b82 + languageName: node + linkType: hard + +"istanbul-reports@npm:^3.1.6": + version: 3.1.7 + resolution: "istanbul-reports@npm:3.1.7" + dependencies: + html-escaper: "npm:^2.0.0" + istanbul-lib-report: "npm:^3.0.0" + checksum: 10/f1faaa4684efaf57d64087776018d7426312a59aa6eeb4e0e3a777347d23cd286ad18f427e98f0e3dee666103d7404c9d7abc5f240406a912fa16bd6695437fa + languageName: node + linkType: hard + "iterator.prototype@npm:^1.1.2": version: 1.1.2 resolution: "iterator.prototype@npm:1.1.2" @@ -5083,6 +5282,26 @@ __metadata: languageName: node linkType: hard +"magicast@npm:^0.3.3": + version: 0.3.3 + resolution: "magicast@npm:0.3.3" + dependencies: + "@babel/parser": "npm:^7.23.6" + "@babel/types": "npm:^7.23.6" + source-map-js: "npm:^1.0.2" + checksum: 10/04af6f60d80a3a51344a864c6479af428e672c249b3f9211d78eee6ac8649257daad610ba4a68d4151e38d393b48b0f4a8f3db178422674fb5d418bc8c939055 + languageName: node + linkType: hard + +"make-dir@npm:^4.0.0": + version: 4.0.0 + resolution: "make-dir@npm:4.0.0" + dependencies: + semver: "npm:^7.5.3" + checksum: 10/bf0731a2dd3aab4db6f3de1585cea0b746bb73eb5a02e3d8d72757e376e64e6ada190b1eddcde5b2f24a81b688a9897efd5018737d05e02e2a671dda9cff8a8a + languageName: node + linkType: hard + "make-fetch-happen@npm:^13.0.0": version: 13.0.0 resolution: "make-fetch-happen@npm:13.0.0" @@ -5186,7 +5405,7 @@ __metadata: languageName: node linkType: hard -"minimatch@npm:^3.0.5, minimatch@npm:^3.1.1, minimatch@npm:^3.1.2": +"minimatch@npm:^3.0.4, minimatch@npm:^3.0.5, minimatch@npm:^3.1.1, minimatch@npm:^3.1.2": version: 3.1.2 resolution: "minimatch@npm:3.1.2" dependencies: @@ -5314,6 +5533,13 @@ __metadata: languageName: node linkType: hard +"mrmime@npm:^2.0.0": + version: 2.0.0 + resolution: "mrmime@npm:2.0.0" + checksum: 10/8d95f714ea200c6cf3e3777cbc6168be04b05ac510090a9b41eef5ec081efeb1d1de3e535ffb9c9689fffcc42f59864fd52a500e84a677274f070adeea615c45 + languageName: node + linkType: hard + "ms@npm:2.1.2": version: 2.1.2 resolution: "ms@npm:2.1.2" @@ -5851,6 +6077,8 @@ __metadata: "@types/react": "npm:^18.0" "@types/react-dom": "npm:^18.0" "@vitejs/plugin-react": "npm:^4.2.1" + "@vitest/coverage-istanbul": "npm:^1.3.1" + "@vitest/ui": "npm:^1.3.1" "@yarnpkg/sdks": "npm:^3.1.0" antd: "npm:^4" classnames: "npm:^2.3.1" @@ -7079,7 +7307,7 @@ __metadata: languageName: node linkType: hard -"semver@npm:^7.1.2, semver@npm:^7.3.5, semver@npm:^7.5.4": +"semver@npm:^7.1.2, semver@npm:^7.3.5, semver@npm:^7.5.3, semver@npm:^7.5.4": version: 7.6.0 resolution: "semver@npm:7.6.0" dependencies: @@ -7190,6 +7418,17 @@ __metadata: languageName: node linkType: hard +"sirv@npm:^2.0.4": + version: 2.0.4 + resolution: "sirv@npm:2.0.4" + dependencies: + "@polka/url": "npm:^1.0.0-next.24" + mrmime: "npm:^2.0.0" + totalist: "npm:^3.0.0" + checksum: 10/24f42cf06895017e589c9d16fc3f1c6c07fe8b0dbafce8a8b46322cfba67b7f2498610183954cb0e9d089c8cb60002a7ee7e8bca6a91a0d7042bfbc3473c95c3 + languageName: node + linkType: hard + "slash@npm:^3.0.0": version: 3.0.0 resolution: "slash@npm:3.0.0" @@ -7269,6 +7508,13 @@ __metadata: languageName: node linkType: hard +"source-map@npm:^0.6.1": + version: 0.6.1 + resolution: "source-map@npm:0.6.1" + checksum: 10/59ef7462f1c29d502b3057e822cdbdae0b0e565302c4dd1a95e11e793d8d9d62006cdc10e0fd99163ca33ff2071360cf50ee13f90440806e7ed57d81cba2f7ff + languageName: node + linkType: hard + "spawn-command@npm:0.0.2": version: 0.0.2 resolution: "spawn-command@npm:0.0.2" @@ -7568,6 +7814,17 @@ __metadata: languageName: node linkType: hard +"test-exclude@npm:^6.0.0": + version: 6.0.0 + resolution: "test-exclude@npm:6.0.0" + dependencies: + "@istanbuljs/schema": "npm:^0.1.2" + glob: "npm:^7.1.4" + minimatch: "npm:^3.0.4" + checksum: 10/8fccb2cb6c8fcb6bb4115394feb833f8b6cf4b9503ec2485c2c90febf435cac62abe882a0c5c51a37b9bbe70640cdd05acf5f45e486ac4583389f4b0855f69e5 + languageName: node + linkType: hard + "text-table@npm:^0.2.0": version: 0.2.0 resolution: "text-table@npm:0.2.0" @@ -7640,6 +7897,13 @@ __metadata: languageName: node linkType: hard +"totalist@npm:^3.0.0": + version: 3.0.1 + resolution: "totalist@npm:3.0.1" + checksum: 10/5132d562cf88ff93fd710770a92f31dbe67cc19b5c6ccae2efc0da327f0954d211bbfd9456389655d726c624f284b4a23112f56d1da931ca7cfabbe1f45e778a + languageName: node + linkType: hard + "tough-cookie@npm:^4.1.3": version: 4.1.3 resolution: "tough-cookie@npm:4.1.3"