This commit is contained in:
dal 2025-09-10 10:52:35 -06:00 committed by Wells Bunker
parent da4b5c0b3a
commit 85f35ccf8d
No known key found for this signature in database
GPG Key ID: DB16D6F2679B78FC
2 changed files with 7 additions and 4 deletions

View File

@ -23,15 +23,15 @@ export default defineConfig({
}, },
build: { build: {
external: [ external: [
'lz4', 'lz4',
'xxhash', 'xxhash',
'@duckdb/node-api', '@duckdb/node-api',
'@duckdb/node-bindings', '@duckdb/node-bindings',
'@duckdb/node-bindings-linux-x64', '@duckdb/node-bindings-linux-x64',
'@duckdb/node-bindings-linux-arm64', '@duckdb/node-bindings-linux-arm64',
'@duckdb/node-bindings-darwin-x64', '@duckdb/node-bindings-darwin-x64',
'@duckdb/node-bindings-darwin-arm64', '@duckdb/node-bindings-darwin-arm64',
'@duckdb/node-bindings-win32-x64' '@duckdb/node-bindings-win32-x64',
], ],
extensions: [ extensions: [
esbuildPlugin({ esbuildPlugin({

View File

@ -168,8 +168,11 @@ describe('DuckDB Connection Management', () => {
const connection = await createConnection(); const connection = await createConnection();
expect(connection).toBeDefined(); expect(connection).toBeDefined();
expect(connection.db).toBeDefined();
expect(connection.conn).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 // Should close without error
await expect(closeConnection(connection)).resolves.toBeUndefined(); await expect(closeConnection(connection)).resolves.toBeUndefined();