Skip to content

Commit fdcd8d2

Browse files
committed
Fixed CI
1 parent f09a8e9 commit fdcd8d2

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

tests/pg-native.test.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import assert from 'node:assert';
22
import test from 'node:test';
3-
// @ts-ignore
4-
import Client from 'pg-native';
53
import pgvector from 'pgvector/pg';
64
import { SparseVector } from 'pgvector';
75

@@ -10,7 +8,10 @@ function isDeno() {
108
return typeof Deno !== 'undefined';
119
}
1210

13-
test('pg-native example', {skip: isDeno()}, () => {
11+
test('pg-native example', {skip: isDeno()}, async () => {
12+
// @ts-ignore
13+
const { default: Client } = await import('pg-native');
14+
1415
const client = new Client();
1516
client.connectSync('postgres://localhost/pgvector_node_test');
1617

0 commit comments

Comments
 (0)