Files
n8n-mcp/vitest.config.benchmark.ts
czlonkowski 4c87e4d0a6 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>
2025-07-28 23:25:42 +02:00

31 lines
693 B
TypeScript

import { defineConfig } from 'vitest/config';
import path from 'path';
export default defineConfig({
test: {
globals: true,
environment: 'node',
include: ['tests/benchmarks/**/*.bench.ts'],
benchmark: {
// Benchmark specific options
include: ['tests/benchmarks/**/*.bench.ts'],
reporters: ['default'],
},
setupFiles: [],
pool: 'forks',
poolOptions: {
forks: {
singleFork: true,
},
},
// Increase timeout for benchmarks
testTimeout: 120000,
hookTimeout: 120000,
},
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
'@tests': path.resolve(__dirname, './tests'),
},
},
});