Skip to content
This repository was archived by the owner on Mar 1, 2026. It is now read-only.

Commit eda54d3

Browse files
committed
address PR comments
1 parent 576b2b4 commit eda54d3

3 files changed

Lines changed: 7 additions & 5 deletions

File tree

packages/orm/src/client/plugin.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,9 @@ export interface RuntimePlugin<
7777
[K in keyof ExtQueryArgs]: ZodType<ExtQueryArgs[K]>;
7878
};
7979

80+
/**
81+
* Extended client members (methods and properties).
82+
*/
8083
client?: ExtClientMembers;
8184
}
8285

tests/e2e/orm/plugin-infra/client-members.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,11 @@ describe('Plugin client members', () => {
5252
// @ts-expect-error
5353
extDb.$invalidateCache(1);
5454

55-
await expect(extDb.$cacheStats.hits).toBe(10);
56-
await expect(extDb.$cacheStats.misses).toBe(5);
55+
expect(extDb.$cacheStats.hits).toBe(10);
56+
expect(extDb.$cacheStats.misses).toBe(5);
5757

58-
await expect(extDb.$cacheStats1.hits).toBe(20);
59-
await expect(extDb.$cacheStats1.misses).toBe(10);
58+
expect(extDb.$cacheStats1.hits).toBe(20);
59+
expect(extDb.$cacheStats1.misses).toBe(10);
6060
});
6161

6262
it('should support multiple plugins with different members', async () => {

tests/e2e/orm/plugin-infra/ext-query-args.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ describe('Plugin extended query args', () => {
2222
})
2323
.optional(),
2424
});
25-
``;
2625

2726
type CacheOptions = z.infer<typeof cacheSchema>;
2827

0 commit comments

Comments
 (0)