Skip to content

Commit 50ab0ba

Browse files
committed
...
1 parent 233e8d6 commit 50ab0ba

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

test/node/src/async-dispose.test.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import {
66
PostgresAdapter,
77
PostgresIntrospector,
88
PostgresQueryCompiler,
9+
QueryId,
910
QueryResult,
1011
RootOperationNode,
1112
sql,
@@ -17,7 +18,6 @@ describe('async dispose', function () {
1718
const steps: string[] = []
1819

1920
{
20-
// @ts-ignore - `using` was only introduced in TS 5.2
2121
await using db = new Kysely({
2222
dialect: {
2323
createAdapter: () => new PostgresAdapter(),
@@ -41,8 +41,11 @@ describe('async dispose', function () {
4141
createIntrospector: (db) => new PostgresIntrospector(db),
4242
createQueryCompiler: () =>
4343
new (class extends PostgresQueryCompiler {
44-
compileQuery(node: RootOperationNode): CompiledQuery<unknown> {
45-
const compiled = super.compileQuery(node)
44+
compileQuery(
45+
node: RootOperationNode,
46+
queryId: QueryId,
47+
): CompiledQuery<unknown> {
48+
const compiled = super.compileQuery(node, queryId)
4649
steps.push('compiled')
4750
return compiled
4851
}

0 commit comments

Comments
 (0)