oof
This commit is contained in:
23
web/test/__mocks__/drizzle-orm-libsql.js
Normal file
23
web/test/__mocks__/drizzle-orm-libsql.js
Normal file
@@ -0,0 +1,23 @@
|
||||
function drizzle() {
|
||||
return {
|
||||
select: () => ({
|
||||
from: () => ({
|
||||
where: () => ({ limit: () => Promise.resolve([]) }),
|
||||
}),
|
||||
}),
|
||||
insert: () => ({
|
||||
values: () => ({ returning: () => Promise.resolve([{ id: "mock-id" }]) }),
|
||||
}),
|
||||
update: () => ({
|
||||
set: () => ({
|
||||
where: () => ({ returning: () => Promise.resolve([{ id: "mock-id" }]) }),
|
||||
}),
|
||||
}),
|
||||
delete: () => ({
|
||||
where: () => ({ returning: () => Promise.resolve([]) }),
|
||||
}),
|
||||
};
|
||||
}
|
||||
|
||||
export { drizzle };
|
||||
export default { drizzle };
|
||||
Reference in New Issue
Block a user