mirror of https://github.com/buster-so/buster.git
fix test
This commit is contained in:
parent
da4b5c0b3a
commit
85f35ccf8d
|
@ -23,15 +23,15 @@ export default defineConfig({
|
|||
},
|
||||
build: {
|
||||
external: [
|
||||
'lz4',
|
||||
'lz4',
|
||||
'xxhash',
|
||||
'@duckdb/node-api',
|
||||
'@duckdb/node-bindings',
|
||||
'@duckdb/node-bindings-linux-x64',
|
||||
'@duckdb/node-bindings-linux-arm64',
|
||||
'@duckdb/node-bindings-linux-arm64',
|
||||
'@duckdb/node-bindings-darwin-x64',
|
||||
'@duckdb/node-bindings-darwin-arm64',
|
||||
'@duckdb/node-bindings-win32-x64'
|
||||
'@duckdb/node-bindings-win32-x64',
|
||||
],
|
||||
extensions: [
|
||||
esbuildPlugin({
|
||||
|
|
|
@ -168,8 +168,11 @@ describe('DuckDB Connection Management', () => {
|
|||
const connection = await createConnection();
|
||||
|
||||
expect(connection).toBeDefined();
|
||||
expect(connection.db).toBeDefined();
|
||||
expect(connection.conn).toBeDefined();
|
||||
// dbPath is optional, only present when using disk storage
|
||||
if (connection.dbPath) {
|
||||
expect(typeof connection.dbPath).toBe('string');
|
||||
}
|
||||
|
||||
// Should close without error
|
||||
await expect(closeConnection(connection)).resolves.toBeUndefined();
|
||||
|
|
Loading…
Reference in New Issue