oof
This commit is contained in:
28
web/test/__mocks__/drizzle-orm.js
Normal file
28
web/test/__mocks__/drizzle-orm.js
Normal file
@@ -0,0 +1,28 @@
|
||||
// drizzle-orm mock - chainable proxies
|
||||
function createChainable() {
|
||||
return new Proxy(function() {}, {
|
||||
apply() { return createChainable(); },
|
||||
get() { return createChainable(); },
|
||||
});
|
||||
}
|
||||
|
||||
const eq = createChainable();
|
||||
const and = createChainable();
|
||||
const or = createChainable();
|
||||
const not = createChainable();
|
||||
const inArray = createChainable();
|
||||
const gte = createChainable();
|
||||
const lte = createChainable();
|
||||
const gt = createChainable();
|
||||
const lt = createChainable();
|
||||
const like = createChainable();
|
||||
const ilike = createChainable();
|
||||
const isNull = createChainable();
|
||||
const isNotNull = createChainable();
|
||||
const desc = createChainable();
|
||||
const asc = createChainable();
|
||||
const count = createChainable();
|
||||
const sql = createChainable();
|
||||
const relations = createChainable();
|
||||
|
||||
export { eq, and, or, not, inArray, gte, lte, gt, lt, like, ilike, isNull, isNotNull, desc, asc, count, sql, relations };
|
||||
Reference in New Issue
Block a user