Skip to content

temp

temp #11817

Triggered via pull request January 22, 2025 18:42
Status Failure
Total duration 2m 38s
Artifacts

frontend-checks.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
lint: src/frontend/src/sol/services/sol-send.services.ts#L177
Unexpected console statement
lint: src/frontend/src/sol/services/sol-send.services.ts#L285
Unexpected console statement
lint: src/frontend/src/sol/services/sol-send.services.ts#L292
Unexpected console statement
lint: src/frontend/src/sol/services/sol-send.services.ts#L301
Unexpected console statement
lint
Process completed with exit code 1.
src/frontend/src/tests/sol/services/sol-send.services.spec.ts > sol-send.services > sendSol > should send SOL successfully: src/frontend/src/tests/sol/services/sol-send.services.spec.ts#L106
AssertionError: promise rejected "Error: [vitest] No "getTransactionEncoder… { codeFrame: '…' }" instead of resolving ❯ src/frontend/src/tests/sol/services/sol-send.services.spec.ts:106:4 Caused by: Caused by: Error: [vitest] No "getTransactionEncoder" export is defined on the "@solana/web3.js" mock. Did you forget to return it from "vi.mock"? If you need to partially mock a module, you can use "importOriginal" helper inside: vi.mock(import("@solana/web3.js"), async (importOriginal) => { const actual = await importOriginal() return { ...actual, // your mocked methods } }) ❯ Module.sendSol src/frontend/src/sol/services/sol-send.services.ts:281:13 ❯ src/frontend/src/tests/sol/services/sol-send.services.spec.ts:97:4
src/frontend/src/tests/sol/services/sol-send.services.spec.ts > sol-send.services > sendSol > should send SPL tokens successfully: src/frontend/src/tests/sol/services/sol-send.services.spec.ts#L122
AssertionError: promise rejected "Error: [vitest] No "getTransactionEncoder… { codeFrame: '…' }" instead of resolving ❯ src/frontend/src/tests/sol/services/sol-send.services.spec.ts:122:4 Caused by: Caused by: Error: [vitest] No "getTransactionEncoder" export is defined on the "@solana/web3.js" mock. Did you forget to return it from "vi.mock"? If you need to partially mock a module, you can use "importOriginal" helper inside: vi.mock(import("@solana/web3.js"), async (importOriginal) => { const actual = await importOriginal() return { ...actual, // your mocked methods } }) ❯ Module.sendSol src/frontend/src/sol/services/sol-send.services.ts:281:13 ❯ src/frontend/src/tests/sol/services/sol-send.services.spec.ts:113:4
src/frontend/src/tests/sol/services/sol-send.services.spec.ts > sol-send.services > sendSol > should send add ATA creation instructions if needed: src/frontend/src/tests/sol/services/sol-send.services.spec.ts#L138
AssertionError: promise rejected "Error: [vitest] No "getTransactionEncoder… { codeFrame: '…' }" instead of resolving ❯ src/frontend/src/tests/sol/services/sol-send.services.spec.ts:138:4 Caused by: Caused by: Error: [vitest] No "getTransactionEncoder" export is defined on the "@solana/web3.js" mock. Did you forget to return it from "vi.mock"? If you need to partially mock a module, you can use "importOriginal" helper inside: vi.mock(import("@solana/web3.js"), async (importOriginal) => { const actual = await importOriginal() return { ...actual, // your mocked methods } }) ❯ Module.sendSol src/frontend/src/sol/services/sol-send.services.ts:281:13 ❯ src/frontend/src/tests/sol/services/sol-send.services.spec.ts:129:4
test
Process completed with exit code 1.
may-merge
Process completed with exit code 1.