fix(test): add forceExit to prevent KuzuDB native cleanup hang in CI

KuzuDB's C++ destructor crashes the vitest fork worker on exit,
causing a ~7 minute hang before timeout. forceExit kills the
worker immediately after tests complete.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
abhigyanpatwari 2026-03-01 20:33:18 +05:30
parent 1c54a5260b
commit 62e6ad5a5b

View file

@ -8,6 +8,7 @@ export default defineConfig({
singleFork: true, // run all tests in a single fork to avoid KuzuDB native cleanup crashes
globals: true,
teardownTimeout: 1000,
forceExit: true, // KuzuDB native destructor can crash/hang the fork on exit
coverage: {
provider: 'v8',
include: ['src/**/*.ts'],