Files
hapi/cli/vitest.config.ts
T
bc6b1577fa merge: hapi upstream v0.34.1
Merge release tag v0.34.1 into the local deployment fork. Preserve local
features (Agent Team, Studio, session shares, skins, DSH Web runtime,
attachment cache, deploy tooling) while adopting upstream session-list,
composer, steering, model-catalog, native-client, and migration changes.

Regenerate the local chat_attachments migration as v31→v32 behind the
upstream v28-v31 ladder; keep DSH on the Web runtime instead of the ACP
transport added upstream.

Co-Authored-By: Claude Code <noreply@anthropic.com>
Co-Authored-By: HAPI <noreply@hapi.run>
2026-11-05 00:51:11 +08:00

41 lines
1.3 KiB
TypeScript

import { defineConfig } from 'vitest/config'
import { resolve } from 'node:path'
export default defineConfig({
test: {
globals: false,
environment: 'node',
include: ['src/**/*.test.ts', 'scripts/**/*.test.ts'],
exclude: [
// Runner integration tests spawn real detached runner/session
// process trees and must run serially through the dedicated
// integration project (`bun run test:integration`, see
// vitest.integration.config.ts), not inside the parallel
// unit-test suite.
'**/runner.integration.test.ts',
// Bun-only (`bun:test` + `bun:sqlite`); run with
// `bun test src/commands/usageScan.test.ts`.
'src/commands/usageScan.test.ts',
'**/lateRunnerWebhook.integration.test.ts',
],
globalSetup: './src/test/globalSetup.ts',
setupFiles: './src/test/setup.ts',
coverage: {
provider: 'v8',
reporter: ['text', 'json', 'html'],
exclude: [
'node_modules/**',
'dist/**',
'**/*.d.ts',
'**/*.config.*',
'**/mockData/**',
],
},
},
resolve: {
alias: {
'@': resolve('./src'),
},
},
})