V1.1.1 #26
Annotations
10 errors
Run tests:
src/handlers/transactionsHandler/transactionsHandler.test.ts#L32
TypeError: [AsyncFunction sendMessage] is not a spy or a call to a spy!
❯ src/handlers/transactionsHandler/transactionsHandler.test.ts:32:25
|
Run tests:
src/handlers/transactionsHandler/transactionsHandler.test.ts#L54
TypeError: [AsyncFunction sendMessage] is not a spy or a call to a spy!
❯ src/handlers/transactionsHandler/transactionsHandler.test.ts:54:23
|
Run tests:
src/utils/prisma/prismaGroupUtils/prismaGroupUtils.test.ts#L24
TypeError: prisma.group.findUnique.mockResolvedValue is not a function
❯ src/utils/prisma/prismaGroupUtils/prismaGroupUtils.test.ts:24:50
|
Run tests:
src/utils/prisma/prismaGroupUtils/prismaGroupUtils.test.ts#L38
TypeError: prisma.group.update.mockResolvedValue is not a function
❯ src/utils/prisma/prismaGroupUtils/prismaGroupUtils.test.ts:38:46
|
Run tests:
src/utils/prisma/prismaGroupUtils/prismaGroupUtils.test.ts#L61
TypeError: prisma.group.create.mockResolvedValue is not a function
❯ src/utils/prisma/prismaGroupUtils/prismaGroupUtils.test.ts:61:46
|
Run tests:
src/utils/prisma/prismaTransactionUtils/prismaTransactionUtils.test.ts#L34
Error: [vitest] No "createTransaction_Expense" export is defined on the "./prismaTransactionUtils" 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("./prismaTransactionUtils"), async (importOriginal) => {
const actual = await importOriginal()
return {
...actual,
// your mocked methods
}
})
❯ src/utils/prisma/prismaTransactionUtils/prismaTransactionUtils.test.ts:34:34
|
Run tests:
src/utils/prisma/prismaTransactionUtils/prismaTransactionUtils.test.ts#L45
Error: [vitest] No "createTransaction_Repayment" export is defined on the "./prismaTransactionUtils" 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("./prismaTransactionUtils"), async (importOriginal) => {
const actual = await importOriginal()
return {
...actual,
// your mocked methods
}
})
❯ src/utils/prisma/prismaTransactionUtils/prismaTransactionUtils.test.ts:45:34
|
Run tests:
src/utils/prisma/prismaTransactionUtils/prismaTransactionUtils.test.ts#L56
Error: [vitest] No "findTransaction_byId" export is defined on the "./prismaTransactionUtils" 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("./prismaTransactionUtils"), async (importOriginal) => {
const actual = await importOriginal()
return {
...actual,
// your mocked methods
}
})
❯ src/utils/prisma/prismaTransactionUtils/prismaTransactionUtils.test.ts:56:34
|
Run tests:
src/utils/prisma/prismaTransactionUtils/prismaTransactionUtils.test.ts#L69
Error: [vitest] No "findTransactions_byGroupId" export is defined on the "./prismaTransactionUtils" 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("./prismaTransactionUtils"), async (importOriginal) => {
const actual = await importOriginal()
return {
...actual,
// your mocked methods
}
})
❯ src/utils/prisma/prismaTransactionUtils/prismaTransactionUtils.test.ts:69:34
|
Run tests:
src/utils/prisma/prismaTransactionUtils/prismaTransactionUtils.test.ts#L83
Error: [vitest] No "findTransactions_byGroupTransactionId" export is defined on the "./prismaTransactionUtils" 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("./prismaTransactionUtils"), async (importOriginal) => {
const actual = await importOriginal()
return {
...actual,
// your mocked methods
}
})
❯ src/utils/prisma/prismaTransactionUtils/prismaTransactionUtils.test.ts:83:34
|
Loading