21 lines
355 B
TypeScript
21 lines
355 B
TypeScript
/// <reference types="jest" />
|
|
|
|
export const createPrismaMock = () => ({
|
|
account: {
|
|
findFirst: jest.fn(),
|
|
findMany: jest.fn()
|
|
},
|
|
transactionRaw: {
|
|
findMany: jest.fn(),
|
|
create: jest.fn(),
|
|
upsert: jest.fn()
|
|
},
|
|
transactionDerived: {
|
|
create: jest.fn(),
|
|
upsert: jest.fn()
|
|
},
|
|
exportLog: {
|
|
create: jest.fn()
|
|
}
|
|
});
|