Skip to content

Commit b4cb35d

Browse files
ymc9claude
andcommitted
test: drop direct kysely import from issue-2841 regression test
The regression test package doesn't depend on kysely, so importing LogEvent from it fails type-checking in CI. The log callback parameter is already contextually typed from the client options. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
1 parent cb8e00a commit b4cb35d

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎tests/regression/test/issue-2841.test.ts‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { createPolicyTestClient } from '@zenstackhq/testtools';
2-
import type { LogEvent } from 'kysely';
32
import { describe, expect, it } from 'vitest';
43

54
// https://github.com/zenstackhq/zenstack/issues/2841
@@ -32,7 +31,7 @@ model Note {
3231
async function createClient() {
3332
const sqls: string[] = [];
3433
const db = await createPolicyTestClient(schema, {
35-
log: (event: LogEvent) => {
34+
log: (event) => {
3635
if (event.level === 'query') {
3736
sqls.push(event.query.sql);
3837
}

0 commit comments

Comments
 (0)