feat/simplify-payments #22
codecov.yml
on: pull_request
Run tests and collect coverage
31s
Annotations
10 errors
src/handlers/transactionsHandler/transactionsHandler.test.ts > transactionsHandler > should return a message if no transactions are found:
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
|
src/handlers/transactionsHandler/transactionsHandler.test.ts > transactionsHandler > should return a message with all transactions:
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
|
src/utils/prisma/prismaGroupUtils/prismaGroupUtils.test.ts > prismaGroupUtils > findGroup_byId > should find a group by id:
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
|
src/utils/prisma/prismaGroupUtils/prismaGroupUtils.test.ts > prismaGroupUtils > updateGroup_byId_withNewMembers > should update a group with new members:
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
|
src/utils/prisma/prismaGroupUtils/prismaGroupUtils.test.ts > prismaGroupUtils > createGroup > should create a new group:
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
|
src/utils/prisma/prismaTransactionUtils/prismaTransactionUtils.test.ts > prismaTransactionUtils > createTransaction_Expense > should create a new expense transaction:
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
|
src/utils/prisma/prismaTransactionUtils/prismaTransactionUtils.test.ts > prismaTransactionUtils > createTransaction_Repayment > should create a new repayment transaction:
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
|
src/utils/prisma/prismaTransactionUtils/prismaTransactionUtils.test.ts > prismaTransactionUtils > findTransaction_byId > should find a transaction by id:
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
|
src/utils/prisma/prismaTransactionUtils/prismaTransactionUtils.test.ts > prismaTransactionUtils > findTransactions_byGroupId > should find transactions by group id:
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
|
src/utils/prisma/prismaTransactionUtils/prismaTransactionUtils.test.ts > prismaTransactionUtils > findTransactions_byGroupTransactionId > should find transactions by group transaction id:
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
|