temp #11869
Annotations
9 errors and 1 warning
lint:
src/frontend/src/sol/services/sol-send.services.ts#L181
Unexpected console statement
|
lint:
src/frontend/src/sol/services/sol-send.services.ts#L286
Unexpected console statement
|
lint:
src/frontend/src/sol/services/sol-send.services.ts#L291
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:279:40
❯ 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:279:40
❯ 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:279:40
❯ 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.
|
lint:
src/frontend/src/sol/services/worker.sol-wallet.services.ts#L36
'isMainnetNetwork' is assigned a value but never used. Allowed unused vars must match /^_/u
|