mirror of
https://github.com/Fission-AI/OpenSpec.git
synced 2026-09-14 20:16:53 +08:00
c51ba91bb6
- Add teardownTimeout (3s) to vitest config for forced cleanup - Add global teardown function to vitest.setup.ts - Call child.unref() to prevent child processes from blocking event loop - Explicitly destroy stdio streams on process close/error
13 lines
355 B
TypeScript
13 lines
355 B
TypeScript
import { ensureCliBuilt } from './test/helpers/run-cli.js';
|
|
|
|
// Ensure the CLI bundle exists before tests execute
|
|
export async function setup() {
|
|
await ensureCliBuilt();
|
|
}
|
|
|
|
// Global teardown to ensure clean exit
|
|
export async function teardown() {
|
|
// Clear any remaining timers
|
|
// This helps prevent hanging handles from keeping the process alive
|
|
}
|