diff --git a/.eslintrc.cjs b/.eslintrc.cjs index c288db0..1c98791 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -29,6 +29,7 @@ module.exports = { 'src/lib/codegen/', '**/*.cjs', 'docs', + 'coverage', ], rules: { 'unicorn/filename-case': 'off', diff --git a/package.json b/package.json index 202f74e..33e8bc1 100644 --- a/package.json +++ b/package.json @@ -31,26 +31,27 @@ "prepare": "pnpm codegen", "prepublish": "pnpm build", "semantic-release": "semantic-release", - "test": "vitest" + "test": "vitest run --coverage" }, "prettier": "@vercel/style-guide/prettier", "dependencies": { - "@nickadamson/sdk": "0.0.10-dev8", - "@tanstack/query-core": "^4.36.1", + "@nickadamson/sdk": "0.0.11-dev22", + "@tanstack/query-core": "^5.0.0", "@wagmi/cli": "^1.5.2", "viem": "^1.16.6", - "wagmi": "^1.4.3" + "wagmi": "^1.4.4" }, "devDependencies": { - "@tanstack/react-query": "^4.36.1", + "@tanstack/react-query": "^5.0.0", "@testing-library/react": "^14.0.0", "@testing-library/react-hooks": "^8.0.1", "@types/node": "^20.8.5", "@types/react": "^18.0.9", "@types/react-dom": "^18.0.3", "@vercel/style-guide": "^5.0.1", - "@wagmi/core": "^1.4.3", - "abitype": "0.8.7", + "@vitest/coverage-v8": "^0.34.6", + "@wagmi/core": "^1.4.4", + "abitype": "0.10.1", "eslint": "^8.51.0", "happy-dom": "^12.9.1", "jest-environment-jsdom": "^29.7.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 330a648..087e908 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -6,25 +6,25 @@ settings: dependencies: '@nickadamson/sdk': - specifier: 0.0.10-dev8 - version: 0.0.10-dev8(@types/react@18.2.28)(react@18.2.0)(typescript@5.2.2)(zod@3.22.4) + specifier: 0.0.11-dev22 + version: 0.0.11-dev22(@types/react@18.2.28)(react@18.2.0)(typescript@5.2.2)(zod@3.22.4) '@tanstack/query-core': - specifier: ^4.36.1 - version: 4.36.1 + specifier: ^5.0.0 + version: 5.0.0 '@wagmi/cli': specifier: ^1.5.2 - version: 1.5.2(@wagmi/core@1.4.3)(typescript@5.2.2)(wagmi@1.4.3) + version: 1.5.2(@wagmi/core@1.4.4)(typescript@5.2.2)(wagmi@1.4.4) viem: specifier: ^1.16.6 version: 1.16.6(typescript@5.2.2)(zod@3.22.4) wagmi: - specifier: ^1.4.3 - version: 1.4.3(@types/react@18.2.28)(react-dom@18.2.0)(react@18.2.0)(typescript@5.2.2)(viem@1.16.6)(zod@3.22.4) + specifier: ^1.4.4 + version: 1.4.4(@types/react@18.2.28)(react-dom@18.2.0)(react@18.2.0)(typescript@5.2.2)(viem@1.16.6)(zod@3.22.4) devDependencies: '@tanstack/react-query': - specifier: ^4.36.1 - version: 4.36.1(react-dom@18.2.0)(react@18.2.0) + specifier: ^5.0.0 + version: 5.0.0(react-dom@18.2.0)(react@18.2.0) '@testing-library/react': specifier: ^14.0.0 version: 14.0.0(react-dom@18.2.0)(react@18.2.0) @@ -43,12 +43,15 @@ devDependencies: '@vercel/style-guide': specifier: ^5.0.1 version: 5.0.1(eslint@8.51.0)(prettier@3.0.3)(typescript@5.2.2) + '@vitest/coverage-v8': + specifier: ^0.34.6 + version: 0.34.6(vitest@0.34.6) '@wagmi/core': - specifier: ^1.4.3 - version: 1.4.3(@types/react@18.2.28)(react@18.2.0)(typescript@5.2.2)(viem@1.16.6)(zod@3.22.4) + specifier: ^1.4.4 + version: 1.4.4(@types/react@18.2.28)(react@18.2.0)(typescript@5.2.2)(viem@1.16.6)(zod@3.22.4) abitype: - specifier: 0.8.7 - version: 0.8.7(typescript@5.2.2)(zod@3.22.4) + specifier: 0.10.1 + version: 0.10.1(typescript@5.2.2)(zod@3.22.4) eslint: specifier: ^8.51.0 version: 8.51.0 @@ -110,7 +113,7 @@ packages: engines: {node: '>=6.0.0'} dependencies: '@jridgewell/gen-mapping': 0.3.3 - '@jridgewell/trace-mapping': 0.3.19 + '@jridgewell/trace-mapping': 0.3.20 dev: true /@babel/code-frame@7.22.13: @@ -169,7 +172,7 @@ packages: dependencies: '@babel/types': 7.23.0 '@jridgewell/gen-mapping': 0.3.3 - '@jridgewell/trace-mapping': 0.3.19 + '@jridgewell/trace-mapping': 0.3.20 jsesc: 2.5.2 dev: true @@ -324,8 +327,12 @@ packages: to-fast-properties: 2.0.0 dev: true - /@bufbuild/buf-darwin-arm64@1.27.0: - resolution: {integrity: sha512-Bsdo9BkkIlIgBpQJ2jyIXl9ggSqDdSJ12euxgU1y4pbT5iD11mdiUA7eq5/ssxLJilUrUGj2Gk1h1KbYG/JfVA==} + /@bcoe/v8-coverage@0.2.3: + resolution: {integrity: sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==} + dev: true + + /@bufbuild/buf-darwin-arm64@1.27.1: + resolution: {integrity: sha512-TpaRqvhcR0AgwoG93L3jv8oZtV0YHZx8j2Oj/CqHwqK910VZ2hF6JBy9FSIYqrzOj4JbHnBb6CENlDHUR5WJPw==} engines: {node: '>=12'} cpu: [arm64] os: [darwin] @@ -333,8 +340,8 @@ packages: dev: false optional: true - /@bufbuild/buf-darwin-x64@1.27.0: - resolution: {integrity: sha512-aJmSZvO6uNxHST8+kN5cukv7/ZLgDnvklp+r6uyokocg5sk1rgWQVBqiVtGmoDWwPbotpMhb3EuqtwN9hdNrOg==} + /@bufbuild/buf-darwin-x64@1.27.1: + resolution: {integrity: sha512-aQAVHm53B2PlzMO4sAlXspsGvCl0IGGSG9xRdDa2uEvvvYlSwZeYCJZSy9l5T1W35rz1AN6Y/u9sV+ylHcmi2A==} engines: {node: '>=12'} cpu: [x64] os: [darwin] @@ -342,8 +349,8 @@ packages: dev: false optional: true - /@bufbuild/buf-linux-aarch64@1.27.0: - resolution: {integrity: sha512-1NPHARYENNVWOK3bQxbnYsMLU09em4/kdyAnCwyGkNhr+pWUlWdCBu3X5tdrRW+mnhjeagIcomTMhgVjxIAS7g==} + /@bufbuild/buf-linux-aarch64@1.27.1: + resolution: {integrity: sha512-p4hX0VasF8Yd4+yAkiV5uUTaleEMWdnzDFWmBxwSjpORAXqp/By1JPH8flr2tPRGN+uIGbtXl3T2sOEsqS2gfA==} engines: {node: '>=12'} cpu: [arm64] os: [linux] @@ -351,8 +358,8 @@ packages: dev: false optional: true - /@bufbuild/buf-linux-x64@1.27.0: - resolution: {integrity: sha512-3LMTSJlwJAeOfjPuB0NBK+1Yfg1Bybadt+c1X/vF8XSXut1u0Ju1/fbRDz75BF4AlMidMQPdGS+vPWmPcb51hA==} + /@bufbuild/buf-linux-x64@1.27.1: + resolution: {integrity: sha512-NizPSsd/Q9pfOnR9yEDKIwyYCpG1uRWixJSdraAuO6NfyiPwjZ8+F0shIWfLNptANqM7GPBC7HNc5wX380OHCA==} engines: {node: '>=12'} cpu: [x64] os: [linux] @@ -360,8 +367,8 @@ packages: dev: false optional: true - /@bufbuild/buf-win32-arm64@1.27.0: - resolution: {integrity: sha512-Za5d3obNvSfLZAlQW8IAWtv1Yv0gQTFDVMPyYiOh70rKIfKIxrWZxT4E4nzFLZZ54VQDFoUl81bAjOYLOgaspQ==} + /@bufbuild/buf-win32-arm64@1.27.1: + resolution: {integrity: sha512-WoH2cF8cQ7e2qeeoQDuvmfzW13n3blo0LdX59BFU+zUehKYBfEy7fcmuF8NmAOKhgzOXCh7mimukXpRE7kfyYw==} engines: {node: '>=12'} cpu: [arm64] os: [win32] @@ -369,8 +376,8 @@ packages: dev: false optional: true - /@bufbuild/buf-win32-x64@1.27.0: - resolution: {integrity: sha512-OzVK4Fz162Z6fFHAAZhHPW2GiCXjweCG/hwjOtFt2gza1t3ImYp0CwxJI6ePGY+th3Y9yu8rY0iHiI59ezMa4Q==} + /@bufbuild/buf-win32-x64@1.27.1: + resolution: {integrity: sha512-x3x7l+hfT71sf8bwxKME7NXPBNT+R8gObFpcEaTk6xTGPfOlbX8Y4M9C4kX2cH0oSFgkafIe+TUReCYrP3cGvA==} engines: {node: '>=12'} cpu: [x64] os: [win32] @@ -378,18 +385,18 @@ packages: dev: false optional: true - /@bufbuild/buf@1.27.0: - resolution: {integrity: sha512-vR/ke6gUNgGSC3z7WkHLcbO+ur+zvGTC4ohHsLo2dZqEWysWySjNpcU70SKdIN3G5M4fSS1ki6MkZPes3E+83w==} + /@bufbuild/buf@1.27.1: + resolution: {integrity: sha512-PtMIFojz77V5BYmC4OR+y6IqsI3jc1b2qysPJ7vaR1jx5K94C9prGvtWEJeEI06xaffVD97VsTt0VR6gTNk+HA==} engines: {node: '>=12'} hasBin: true requiresBuild: true optionalDependencies: - '@bufbuild/buf-darwin-arm64': 1.27.0 - '@bufbuild/buf-darwin-x64': 1.27.0 - '@bufbuild/buf-linux-aarch64': 1.27.0 - '@bufbuild/buf-linux-x64': 1.27.0 - '@bufbuild/buf-win32-arm64': 1.27.0 - '@bufbuild/buf-win32-x64': 1.27.0 + '@bufbuild/buf-darwin-arm64': 1.27.1 + '@bufbuild/buf-darwin-x64': 1.27.1 + '@bufbuild/buf-linux-aarch64': 1.27.1 + '@bufbuild/buf-linux-x64': 1.27.1 + '@bufbuild/buf-win32-arm64': 1.27.1 + '@bufbuild/buf-win32-x64': 1.27.1 dev: false /@bufbuild/protobuf@1.3.3: @@ -915,6 +922,11 @@ packages: resolution: {integrity: sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==} dev: true + /@istanbuljs/schema@0.1.3: + resolution: {integrity: sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==} + engines: {node: '>=8'} + dev: true + /@jest/environment@29.7.0: resolution: {integrity: sha512-aQIfHDq33ExsN4jP1NWGXhxgQ/wixs60gDiKO+XVMd8Mn0NWPWgc34ZQDTb2jKaUWQ7MuwoitXAsN2XVXNMpAw==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} @@ -962,7 +974,7 @@ packages: dependencies: '@jridgewell/set-array': 1.1.2 '@jridgewell/sourcemap-codec': 1.4.15 - '@jridgewell/trace-mapping': 0.3.19 + '@jridgewell/trace-mapping': 0.3.20 dev: true /@jridgewell/resolve-uri@3.1.1: @@ -979,8 +991,8 @@ packages: resolution: {integrity: sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==} dev: true - /@jridgewell/trace-mapping@0.3.19: - resolution: {integrity: sha512-kf37QtfW+Hwx/buWGMPcR60iF9ziHa6r/CZJIHbmcm4+0qrXiVdxegAH0F6yddEVQ7zdkjcGCgCzUu+BcbhQxw==} + /@jridgewell/trace-mapping@0.3.20: + resolution: {integrity: sha512-R8LcPeWZol2zR8mmH3JeKQ6QRCFb7XgUhV9ZlGhHLGyg4wpPiPZNQOOWhFZhxKw8u//yTbNGI42Bx/3paXEQ+Q==} dependencies: '@jridgewell/resolve-uri': 3.1.1 '@jridgewell/sourcemap-codec': 1.4.15 @@ -1084,15 +1096,15 @@ packages: '@motionone/dom': 10.16.4 tslib: 2.6.2 - /@nickadamson/sdk@0.0.10-dev8(@types/react@18.2.28)(react@18.2.0)(typescript@5.2.2)(zod@3.22.4): - resolution: {integrity: sha512-etIqDR6zKpcQoAs5jzz/M+G7EXoOj7wQjrVzKGUD4+n/Pe3ijeehHyHONKITu2Z8A1IOlHN2ERd+1lVM2zrpNQ==} + /@nickadamson/sdk@0.0.11-dev22(@types/react@18.2.28)(react@18.2.0)(typescript@5.2.2)(zod@3.22.4): + resolution: {integrity: sha512-ZUb6laOd6R1nNhCnNbVfIv2nlol7Z2gm0SDMMcsqyE4TmuWGs31hmRa+xt7zDAXvpDwAm5XgX9ruINPGWTYOfQ==} engines: {node: '>=18'} dependencies: - '@bufbuild/buf': 1.27.0 + '@bufbuild/buf': 1.27.1 '@bufbuild/protobuf': 1.3.3 '@connectrpc/connect': 1.1.2(@bufbuild/protobuf@1.3.3) '@connectrpc/connect-node': 1.1.2(@bufbuild/protobuf@1.3.3)(@connectrpc/connect@1.1.2) - '@wagmi/core': 1.4.3(@types/react@18.2.28)(react@18.2.0)(typescript@5.2.2)(viem@1.16.6)(zod@3.22.4) + '@wagmi/core': 1.4.4(@types/react@18.2.28)(react@18.2.0)(typescript@5.2.2)(viem@1.16.6)(zod@3.22.4) viem: 1.16.6(typescript@5.2.2)(zod@3.22.4) transitivePeerDependencies: - '@react-native-async-storage/async-storage' @@ -1573,6 +1585,10 @@ packages: /@tanstack/query-core@4.36.1: resolution: {integrity: sha512-DJSilV5+ytBP1FbFcEJovv4rnnm/CokuVvrBEtW/Va9DvuJ3HksbXUJEpI0aV1KtuL4ZoO9AVE6PyNLzF7tLeA==} + dev: false + + /@tanstack/query-core@5.0.0: + resolution: {integrity: sha512-Y1BpiA6BblJd/UlVqxEVeAG7IACn568YJuTTItAiecBI7En+33g780kg+/8lhgl+BzcUPN7o+NjBrSRGJoemyQ==} /@tanstack/query-persist-client-core@4.36.1: resolution: {integrity: sha512-eocgCeI7D7TRv1IUUBMfVwOI0wdSmMkBIbkKhqEdTrnUHUQEeOaYac8oeZk2cumAWJdycu6P/wB+WqGynTnzXg==} @@ -1611,6 +1627,24 @@ packages: react: 18.2.0 react-dom: 18.2.0(react@18.2.0) use-sync-external-store: 1.2.0(react@18.2.0) + dev: false + + /@tanstack/react-query@5.0.0(react-dom@18.2.0)(react@18.2.0): + resolution: {integrity: sha512-diQoC8FNBcO5Uf5yuaJlXthTtbO1xM8kzOX+pSBUMT9n/cqQ/u1wJGCtukvhDWA+6j07WmIj4bfqNbd2KOB6jQ==} + peerDependencies: + react: ^18.0.0 + react-dom: ^18.0.0 + react-native: '*' + peerDependenciesMeta: + react-dom: + optional: true + react-native: + optional: true + dependencies: + '@tanstack/query-core': 5.0.0 + react: 18.2.0 + react-dom: 18.2.0(react@18.2.0) + dev: true /@testing-library/dom@9.3.3: resolution: {integrity: sha512-fB0R+fa3AUqbLHWyxXa2kGVtf1Fe1ZZFr0Zp6AIbIAzXb2mKbEXl+PCQNUOaq5lbTab5tfctfXRNsWXxa2f7Aw==} @@ -2044,6 +2078,27 @@ packages: - supports-color dev: true + /@vitest/coverage-v8@0.34.6(vitest@0.34.6): + resolution: {integrity: sha512-fivy/OK2d/EsJFoEoxHFEnNGTg+MmdZBAVK9Ka4qhXR2K3J0DS08vcGVwzDtXSuUMabLv4KtPcpSKkcMXFDViw==} + peerDependencies: + vitest: '>=0.32.0 <1' + dependencies: + '@ampproject/remapping': 2.2.1 + '@bcoe/v8-coverage': 0.2.3 + istanbul-lib-coverage: 3.2.0 + istanbul-lib-report: 3.0.1 + istanbul-lib-source-maps: 4.0.1 + istanbul-reports: 3.1.6 + magic-string: 0.30.5 + picocolors: 1.0.0 + std-env: 3.4.3 + test-exclude: 6.0.0 + v8-to-istanbul: 9.1.3 + vitest: 0.34.6(happy-dom@12.9.1)(jsdom@22.1.0) + transitivePeerDependencies: + - supports-color + dev: true + /@vitest/expect@0.34.6: resolution: {integrity: sha512-QUzKpUQRc1qC7qdGo7rMK3AkETI7w18gTCUrsNnyjjJKYiuUB9+TQK3QnR1unhCnWRC0AbKv2omLGQDF/mIjOw==} dependencies: @@ -2082,7 +2137,7 @@ packages: pretty-format: 29.7.0 dev: true - /@wagmi/cli@1.5.2(@wagmi/core@1.4.3)(typescript@5.2.2)(wagmi@1.4.3): + /@wagmi/cli@1.5.2(@wagmi/core@1.4.4)(typescript@5.2.2)(wagmi@1.4.4): resolution: {integrity: sha512-UfLMYhW6mQBCjR8A5s01Chf9GpHzdpcuuBuzJ36QGXcMSJAxylz5ImVZWfCRV0ct1UruydjKVSW1QSI6azNxRQ==} engines: {node: '>=14'} hasBin: true @@ -2098,7 +2153,7 @@ packages: wagmi: optional: true dependencies: - '@wagmi/core': 1.4.3(@types/react@18.2.28)(react@18.2.0)(typescript@5.2.2)(viem@1.16.6)(zod@3.22.4) + '@wagmi/core': 1.4.4(@types/react@18.2.28)(react@18.2.0)(typescript@5.2.2)(viem@1.16.6)(zod@3.22.4) abitype: 0.8.7(typescript@5.2.2)(zod@3.22.4) abort-controller: 3.0.0 bundle-require: 3.1.2(esbuild@0.16.17) @@ -2121,7 +2176,7 @@ packages: prettier: 2.8.8 typescript: 5.2.2 viem: 1.16.6(typescript@5.2.2)(zod@3.22.4) - wagmi: 1.4.3(@types/react@18.2.28)(react-dom@18.2.0)(react@18.2.0)(typescript@5.2.2)(viem@1.16.6)(zod@3.22.4) + wagmi: 1.4.4(@types/react@18.2.28)(react-dom@18.2.0)(react@18.2.0)(typescript@5.2.2)(viem@1.16.6)(zod@3.22.4) zod: 3.22.4 transitivePeerDependencies: - bufferutil @@ -2160,8 +2215,8 @@ packages: - utf-8-validate - zod - /@wagmi/core@1.4.3(@types/react@18.2.28)(react@18.2.0)(typescript@5.2.2)(viem@1.16.6)(zod@3.22.4): - resolution: {integrity: sha512-CIV9jwv5ue+WpqmA3FvwGa+23cppe7oIaz6TRnlGm0Hm0wDImSaQSWqcsFyOPvleD29oOIJ8e3KnHINEvI64AA==} + /@wagmi/core@1.4.4(@types/react@18.2.28)(react@18.2.0)(typescript@5.2.2)(viem@1.16.6)(zod@3.22.4): + resolution: {integrity: sha512-38Pa5iH9/2zHX837vYm6M+c//BBikt6vKJqUiEgkIzSqFvlfzbxaNmwybpIxl98N5r+X22C3yHv5bboO9eP0vQ==} peerDependencies: typescript: '>=5.0.4' viem: '>=0.3.35' @@ -2541,6 +2596,21 @@ packages: resolution: {integrity: sha512-j2afSsaIENvHZN2B8GOpF566vZ5WVk5opAiMTvWgaQT8DkbOqsTfvNAvHoRGU2zzP8cPoqys+xHTRDWW8L+/BA==} dev: true + /abitype@0.10.1(typescript@5.2.2)(zod@3.22.4): + resolution: {integrity: sha512-nFx5F2RniXGXw2Ci1uu6iDGnP/z3hW+H65G7cxrs5JDF3Ot9GuYkBJCRAB9EZ5QIi3dNByZaCrGFUn8LLkLQbw==} + peerDependencies: + typescript: '>=5.0.4' + zod: ^3 >=3.22.0 + peerDependenciesMeta: + typescript: + optional: true + zod: + optional: true + dependencies: + typescript: 5.2.2 + zod: 3.22.4 + dev: true + /abitype@0.8.7(typescript@5.2.2)(zod@3.22.4): resolution: {integrity: sha512-wQ7hV8Yg/yKmGyFpqrNZufCxbszDe5es4AZGYPBitocfSqXtjrTG9JMWFcc4N30ukl2ve48aBTwt7NJxVQdU3w==} peerDependencies: @@ -2946,7 +3016,7 @@ packages: hasBin: true dependencies: caniuse-lite: 1.0.30001549 - electron-to-chromium: 1.4.556 + electron-to-chromium: 1.4.557 node-releases: 2.0.13 update-browserslist-db: 1.0.13(browserslist@4.22.1) dev: true @@ -3646,8 +3716,8 @@ packages: readable-stream: 3.6.2 stream-shift: 1.0.1 - /electron-to-chromium@1.4.556: - resolution: {integrity: sha512-6RPN0hHfzDU8D56E72YkDvnLw5Cj2NMXZGg3UkgyoHxjVhG99KZpsKgBWMmTy0Ei89xwan+rbRsVB9yzATmYzQ==} + /electron-to-chromium@1.4.557: + resolution: {integrity: sha512-6x0zsxyMXpnMJnHrondrD3SuAeKcwij9S+83j2qHAQPXbGTDDfgImzzwgGlzrIcXbHQ42tkG4qA6U860cImNhw==} dev: true /emoji-regex@8.0.0: @@ -4855,6 +4925,10 @@ packages: whatwg-encoding: 2.0.0 dev: true + /html-escaper@2.0.2: + resolution: {integrity: sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==} + dev: true + /http-proxy-agent@5.0.0: resolution: {integrity: sha512-n2hY8YdoRE1i7r6M0w9DIw5GgZN0G25P8zLCRQ8rjXtTU3vsNFBI/vWK/UIeE6g5MUUz6avwAPXmL6Fy9D/90w==} engines: {node: '>= 6'} @@ -5278,6 +5352,39 @@ packages: lodash.uniqby: 4.7.0 dev: true + /istanbul-lib-coverage@3.2.0: + resolution: {integrity: sha512-eOeJ5BHCmHYvQK7xt9GkdHuzuCGS1Y6g9Gvnx3Ym33fz/HpLRYxiS0wHNr+m/MBC8B647Xt608vCDEvhl9c6Mw==} + engines: {node: '>=8'} + dev: true + + /istanbul-lib-report@3.0.1: + resolution: {integrity: sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw==} + engines: {node: '>=10'} + dependencies: + istanbul-lib-coverage: 3.2.0 + make-dir: 4.0.0 + supports-color: 7.2.0 + dev: true + + /istanbul-lib-source-maps@4.0.1: + resolution: {integrity: sha512-n3s8EwkdFIJCG3BPKBYvskgXGoy88ARzvegkitk60NxRdwltLOTaH7CUiMRXvwYorl0Q712iEjcWB+fK/MrWVw==} + engines: {node: '>=10'} + dependencies: + debug: 4.3.4 + istanbul-lib-coverage: 3.2.0 + source-map: 0.6.1 + transitivePeerDependencies: + - supports-color + dev: true + + /istanbul-reports@3.1.6: + resolution: {integrity: sha512-TLgnMkKg3iTDsQ9PbPTdpfAK2DzjF9mqUG7RMgcQl8oFjad8ob4laGxv5XV5U9MAfx8D6tSJiUyuAwzLicaxlg==} + engines: {node: '>=8'} + dependencies: + html-escaper: 2.0.2 + istanbul-lib-report: 3.0.1 + dev: true + /iterator.prototype@1.1.2: resolution: {integrity: sha512-DR33HMMr8EzwuRL8Y9D3u2BMj8+RqSE850jfGu59kS7tbmPLzGkZmVSfyCFSDxuZiEY6Rzt3T2NA/qU+NwVj1w==} dependencies: @@ -5777,6 +5884,13 @@ packages: '@jridgewell/sourcemap-codec': 1.4.15 dev: true + /make-dir@4.0.0: + resolution: {integrity: sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==} + engines: {node: '>=10'} + dependencies: + semver: 7.5.4 + dev: true + /make-error@1.3.6: resolution: {integrity: sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==} dev: true @@ -7459,6 +7573,15 @@ packages: unique-string: 3.0.0 dev: true + /test-exclude@6.0.0: + resolution: {integrity: sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==} + engines: {node: '>=8'} + dependencies: + '@istanbuljs/schema': 0.1.3 + glob: 7.2.3 + minimatch: 3.1.2 + dev: true + /text-encoding-utf-8@1.0.2: resolution: {integrity: sha512-8bw4MY9WjdsD2aMtO0OzOCY3pXGYNx2d2FfHRVUKkiCPDWjKuOlhLVASS+pD7VkLTVjW268LYJHwsnPFlBpbAg==} @@ -7937,6 +8060,15 @@ packages: resolution: {integrity: sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==} dev: true + /v8-to-istanbul@9.1.3: + resolution: {integrity: sha512-9lDD+EVI2fjFsMWXc6dy5JJzBsVTcQ2fVkfBvncZ6xJWG9wtBhOldG+mHkSL0+V1K/xgZz0JDO5UT5hFwHUghg==} + engines: {node: '>=10.12.0'} + dependencies: + '@jridgewell/trace-mapping': 0.3.20 + '@types/istanbul-lib-coverage': 2.0.4 + convert-source-map: 2.0.0 + dev: true + /validate-npm-package-license@3.0.4: resolution: {integrity: sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==} dependencies: @@ -8123,8 +8255,8 @@ packages: xml-name-validator: 4.0.0 dev: true - /wagmi@1.4.3(@types/react@18.2.28)(react-dom@18.2.0)(react@18.2.0)(typescript@5.2.2)(viem@1.16.6)(zod@3.22.4): - resolution: {integrity: sha512-3LjbqqVRe6WW/WD07QCd5Itmo4nUfLsXuoc8F7nw9NslNUg8SFEb+g/jZ4665V0xh5ZRqPBJ7XOXASpdM2Y/5Q==} + /wagmi@1.4.4(@types/react@18.2.28)(react-dom@18.2.0)(react@18.2.0)(typescript@5.2.2)(viem@1.16.6)(zod@3.22.4): + resolution: {integrity: sha512-uT6GRNrw3WTrdVRQ7wAHiQL2/gaqaUjcEeHRwsbiqrAT9ZfVtZw7uhl+ZueLpem2zFxlR2zhnRMNbAOKD0IcEA==} peerDependencies: react: '>=17.0.0' typescript: '>=5.0.4' @@ -8136,7 +8268,7 @@ packages: '@tanstack/query-sync-storage-persister': 4.36.1 '@tanstack/react-query': 4.36.1(react-dom@18.2.0)(react@18.2.0) '@tanstack/react-query-persist-client': 4.36.1(@tanstack/react-query@4.36.1) - '@wagmi/core': 1.4.3(@types/react@18.2.28)(react@18.2.0)(typescript@5.2.2)(viem@1.16.6)(zod@3.22.4) + '@wagmi/core': 1.4.4(@types/react@18.2.28)(react@18.2.0)(typescript@5.2.2)(viem@1.16.6)(zod@3.22.4) abitype: 0.8.7(typescript@5.2.2)(zod@3.22.4) react: 18.2.0 typescript: 5.2.2 diff --git a/vitest.config.ts b/vitest.config.ts index 8d3148b..b036af4 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -1,15 +1,12 @@ import { defineConfig } from 'vitest/config'; -// import customEnv from './vitest-environment-jsdom.js'; export default defineConfig({ test: { coverage: { - reporter: ['text', 'json', 'html'], + provider: 'v8', }, environment: 'happy-dom', - environmentOptions: { - jsdom: {}, - }, + reporters: ['default', 'hanging-process'], include: ['**/*.test.ts', '**/*.test.tsx'], }, });