temp #11828
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#L279
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#L295
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:275: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:275: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:275: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.
|