fix(test): use dangerouslyIgnoreUnhandledErrors instead of forceExit

forceExit killed the fork worker before local-backend.test.ts finished,
losing 12 test results. The real issue is KuzuDB's C++ destructor
segfaulting during fork process exit — all tests pass but vitest
reports the post-test crash as a failure.

dangerouslyIgnoreUnhandledErrors ignores the process-level crash
without affecting test results (98/98 tests still run and report).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
abhigyanpatwari 2026-03-01 22:36:38 +05:30
parent 62e6ad5a5b
commit 1430f0c3b5

View file

@ -8,7 +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
dangerouslyIgnoreUnhandledErrors: true, // KuzuDB native destructor segfaults on fork exit — not a test failure
coverage: {
provider: 'v8',
include: ['src/**/*.ts'],