test(fleet): raise mosaic vitest timeout package-wide
Some checks failed
ci/woodpecker/push/ci Pipeline was canceled
ci/woodpecker/pr/ci Pipeline failed

This commit is contained in:
Jarvis
2026-06-24 17:15:09 -05:00
parent f1191070e6
commit f7c88c3fa4
4 changed files with 18 additions and 14 deletions

View File

@@ -2,7 +2,7 @@ import { cp, mkdir, mkdtemp, rm, writeFile } from 'node:fs/promises';
import { tmpdir } from 'node:os';
import { dirname, join, resolve } from 'node:path';
import { fileURLToPath } from 'node:url';
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
import { afterEach, beforeEach, describe, expect, it } from 'vitest';
import {
extractClassesFromDir,
listPersonaClasses,
@@ -11,11 +11,6 @@ import {
} from './fleet-personas.js';
import { loadProfiles, validateProfile, type FleetProfile } from './fleet-profiles.js';
// These are INTEGRATION tests: they exercise real filesystem I/O while scanning
// and validating the committed + override persona libraries. Under contended CI
// runners, the default 5s timeout can false-red even though the suite is healthy.
vi.setConfig({ testTimeout: 30_000 });
// The real, committed library: packages/mosaic/src/commands -> framework/fleet.
const frameworkFleet = resolve(
dirname(fileURLToPath(import.meta.url)),

View File

@@ -4,5 +4,6 @@ export default defineConfig({
test: {
globals: true,
environment: 'node',
testTimeout: 30_000,
},
});