fix: resolve CI test failures and benchmark workflow issues

- Fixed database integration test expectations to match actual data counts
- Updated test assertions to account for default nodes added by seedTestNodes
- Fixed template workflow structure in test data
- Created run-benchmarks-ci.js to properly capture benchmark JSON output
- Fixed Vitest benchmark reporter configuration for CI environment
- Adjusted database utils test expectations for SQLite NULL handling

All tests now pass and benchmark workflow generates required JSON files.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
czlonkowski
2025-07-28 23:25:42 +02:00
parent 61de107c4b
commit 4c87e4d0a6
10 changed files with 470 additions and 37 deletions

View File

@@ -9,10 +9,7 @@ export default defineConfig({
benchmark: {
// Benchmark specific options
include: ['tests/benchmarks/**/*.bench.ts'],
reporters: process.env.CI
? ['default', ['./scripts/vitest-benchmark-json-reporter.js', {}]]
: ['default'],
outputFile: './benchmark-results.json',
reporters: ['default'],
},
setupFiles: [],
pool: 'forks',