Skip to content

Stake update

Stake update #1046

Triggered via pull request December 5, 2024 11:48
Status Failure
Total duration 1m 31s
Artifacts

QA.yaml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

4 errors and 5 warnings
src/app/[lang]/(bridge)/stake/hooks/tests/useGetStakingStrategies.test.tsx > useGetStakingStrategies > should return strategy data: apps/evm/src/app/[lang]/(bridge)/stake/hooks/useGetStakingStrategies.ts#L136
TypeError: Cannot destructure property 'data' of 'useReadContracts(...)' as it is undefined. ❯ Module.useGetStakingStrategies src/app/[lang]/(bridge)/stake/hooks/useGetStakingStrategies.ts:136:17 ❯ __vi_import_2__.renderHook.wrapper src/app/[lang]/(bridge)/stake/hooks/tests/useGetStakingStrategies.test.tsx:163:13 ❯ TestComponent ../../node_modules/.pnpm/@testing-library[email protected]_@[email protected][email protected][email protected][email protected]/node_modules/@testing-library/react-hooks/lib/helpers/createTestHarness.js:25:14 ❯ renderWithHooks ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:15486:18 ❯ updateFunctionComponent ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:19617:20 ❯ beginWork ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:21640:16 ❯ beginWork$1 ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:27465:14 ❯ performUnitOfWork ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:26599:12 ❯ workLoopSync ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:26505:5 ❯ renderRootSync ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:26473:7
src/app/[lang]/(bridge)/stake/hooks/tests/useGetStakingStrategies.test.tsx > useGetStakingStrategies > should return undefined currency when outputToken is missing: apps/evm/src/app/[lang]/(bridge)/stake/hooks/useGetStakingStrategies.ts#L136
TypeError: Cannot destructure property 'data' of 'useReadContracts(...)' as it is undefined. ❯ Module.useGetStakingStrategies src/app/[lang]/(bridge)/stake/hooks/useGetStakingStrategies.ts:136:17 ❯ __vi_import_2__.renderHook.wrapper src/app/[lang]/(bridge)/stake/hooks/tests/useGetStakingStrategies.test.tsx:209:13 ❯ TestComponent ../../node_modules/.pnpm/@testing-library[email protected]_@[email protected][email protected][email protected][email protected]/node_modules/@testing-library/react-hooks/lib/helpers/createTestHarness.js:25:14 ❯ renderWithHooks ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:15486:18 ❯ updateFunctionComponent ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:19617:20 ❯ beginWork ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:21640:16 ❯ beginWork$1 ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:27465:14 ❯ performUnitOfWork ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:26599:12 ❯ workLoopSync ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:26505:5 ❯ renderRootSync ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:26473:7
src/app/[lang]/(bridge)/stake/hooks/tests/useGetStakingStrategies.test.tsx > useGetStakingStrategies > should return tvl value if output token is se* token: apps/evm/src/app/[lang]/(bridge)/stake/hooks/useGetStakingStrategies.ts#L136
TypeError: Cannot destructure property 'data' of 'useReadContracts(...)' as it is undefined. ❯ Module.useGetStakingStrategies src/app/[lang]/(bridge)/stake/hooks/useGetStakingStrategies.ts:136:17 ❯ __vi_import_2__.renderHook.wrapper src/app/[lang]/(bridge)/stake/hooks/tests/useGetStakingStrategies.test.tsx:239:13 ❯ TestComponent ../../node_modules/.pnpm/@testing-library[email protected]_@[email protected][email protected][email protected][email protected]/node_modules/@testing-library/react-hooks/lib/helpers/createTestHarness.js:25:14 ❯ renderWithHooks ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:15486:18 ❯ updateFunctionComponent ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:19617:20 ❯ beginWork ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:21640:16 ❯ beginWork$1 ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:27465:14 ❯ performUnitOfWork ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:26599:12 ❯ workLoopSync ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:26505:5 ❯ renderRootSync ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:26473:7
Tests
Process completed with exit code 1.
Unused Files, Deps, Exports
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Prettier
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
ESLint
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Tests
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
TypeScript
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636