mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-24 14:16:34 +09:00
- Add vitest.config.ts for claims package to find tests in tests/ dir - Fix cooldown test by setting lastRebalanceAt on early returns - All 161 tests now pass 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
45 lines
921 B
TypeScript
45 lines
921 B
TypeScript
/**
|
|
* @claude-flow/claims - Vitest Configuration
|
|
* Test configuration for the claims module
|
|
*/
|
|
import { defineConfig } from 'vitest/config';
|
|
import path from 'path';
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
environment: 'node',
|
|
include: [
|
|
'tests/**/*.test.ts',
|
|
'tests/**/*.spec.ts',
|
|
],
|
|
exclude: [
|
|
'node_modules',
|
|
'dist',
|
|
],
|
|
globals: true,
|
|
mockReset: true,
|
|
clearMocks: true,
|
|
restoreMocks: true,
|
|
testTimeout: 10000,
|
|
hookTimeout: 10000,
|
|
coverage: {
|
|
enabled: true,
|
|
provider: 'v8',
|
|
reporter: ['text', 'json', 'html'],
|
|
reportsDirectory: './coverage',
|
|
include: ['src/**/*.ts'],
|
|
exclude: [
|
|
'**/*.d.ts',
|
|
'**/*.test.ts',
|
|
'**/index.ts',
|
|
],
|
|
},
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
'@': path.resolve(__dirname, './src'),
|
|
'@tests': path.resolve(__dirname, './tests'),
|
|
},
|
|
},
|
|
});
|