Skip to content

add contract networks #408

add contract networks

add contract networks #408

Triggered via push December 30, 2024 05:03
Status Failure
Total duration 44s
Artifacts
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

run-tests.yml

on: push
Matrix: unit-tests
Fit to window
Zoom out
Zoom in

Annotations

2 errors and 1 warning
src/hooks/__tests__/useBalance.test.ts: packages/typink/src/hooks/useBalance.ts#L2
Error: [vitest] There was an error when mocking a module. If you are using "vi.mock" factory, make sure there are no top level variables inside, since this call is hoisted to top of the file. Read more: https://vitest.dev/api/vi.html#vi-mock ❯ src/hooks/useBalance.ts:2:31 Caused by: Caused by: Error: Failed to resolve import "src/types" from "src/networks/mainnet.ts". Does the file exist? Plugin: vite:import-analysis File: /home/runner/work/typink/typink/packages/typink/src/networks/mainnet.ts:1:40 1 | import { JsonRpcApi } from "src/types"; | ^ 2 | export const alephZero = { 3 | id: "alephzero", ❯ TransformPluginContext._formatError ../../node_modules/vitest/node_modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:49255:41 ❯ TransformPluginContext.error ../../node_modules/vitest/node_modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:49250:16 ❯ normalizeUrl ../../node_modules/vitest/node_modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:64041:23 ❯ ../../node_modules/vitest/node_modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:64173:39 ❯ TransformPluginContext.transform ../../node_modules/vitest/node_modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:64100:7 ❯ PluginContainer.transform ../../node_modules/vitest/node_modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:49096:18 ❯ loadAndTransform ../../node_modules/vitest/node_modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:51929:27 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { __vitest_rollup_error__: { plugin: 'vite:import-analysis', id: '/home/runner/work/typink/typink/packages/typink/src/networks/mainnet.ts', loc: { file: '/home/runner/work/typink/typink/packages/typink/src/networks/mainnet.ts', line: 1, column: 40 }, frame: '1 | import { JsonRpcApi } from "src/types";\n | ^\n2 | export const alephZero = {\n3 | id: "alephzero",' } }
unit-tests (18.x)
Process completed with exit code 1.
unit-tests (18.x)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636