Skip to content

Commit 25ff0f2

Browse files
committed
update test
1 parent f15ba8f commit 25ff0f2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/runtime/test/plugin/on-query-hooks.test.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import SQLite from 'better-sqlite3';
22
import { SqliteDialect } from 'kysely';
3-
import { beforeEach, describe, expect, it } from 'vitest';
3+
import { afterEach, beforeEach, describe, expect, it } from 'vitest';
44
import { definePlugin, ZenStackClient, type ClientContract } from '../../src/client';
55
import { schema } from '../schemas/basic';
66

@@ -14,6 +14,10 @@ describe('On query hooks tests', () => {
1414
await _client.$pushSchema();
1515
});
1616

17+
afterEach(async () => {
18+
await _client?.$disconnect();
19+
});
20+
1721
it('supports simple interception', async () => {
1822
const user = await _client.user.create({
1923
data: { email: '[email protected]' },

0 commit comments

Comments
 (0)