fix/simplify-command-bugs #27
Annotations
10 errors
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
|
Run tests:
src/utils/prisma/prismaTransactionUtils/prismaTransactionUtils.test.ts#L96
Error: [vitest] No "deleteTransactions_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:96:34
|
Run tests
Process completed with exit code 1.
|
Loading