Skip to content

Commit

Permalink
Merge pull request drizzle-team#3717 from drizzle-team/postgres-js-mo…
Browse files Browse the repository at this point in the history
…ck-fix

Fixed `.mock` in postgres-js
  • Loading branch information
AndriiSherman authored Dec 9, 2024
2 parents 29eb63c + 734021d commit 2d149cd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion drizzle-orm/src/postgres-js/driver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,11 @@ export namespace drizzle {
): PostgresJsDatabase<TSchema> & {
$client: '$client is not available on drizzle.mock()';
} {
return construct({} as any, config) as any;
return construct({
options: {
parsers: {},
serializers: {},
},
} as any, config) as any;
}
}

0 comments on commit 2d149cd

Please sign in to comment.