Files
callstack__agent-device/vitest.mutation.config.ts
Michał Pierzchała e3c44ea4c3 test(vitest): retire the subprocess-stub kill-criterion experiment (#2255)
* test(vitest): record the subprocess-stub kill-criterion outcome

#1823's kill criterion was met (~64 consecutive genuine Coverage-job
completions since dbc4f2f955 with zero timeout-shaped failures), so
the subprocess-stub project is gone for good rather than mid-experiment.
Rewrite the vitest.config.ts comments to state that resolved outcome
instead of framing it as an ongoing revert-on-first-failure trial.

* test: remove retired subprocess project traces

* test: model the active fuzz worker project
2026-09-03 17:34:17 +02:00

32 lines
994 B
TypeScript

import path from 'node:path';
import { fileURLToPath } from 'node:url';
import { defineConfig } from 'vitest/config';
import { readTestScope, threadHostileTestFiles } from './scripts/mutation/test-scope.ts';
import { workspaceSourceAliases } from './scripts/mutation/workspace-aliases.ts';
import { MUTATION_EXCLUDED_TESTS, SETUP_FILES } from './vitest.config.ts';
const repoRoot = path.dirname(fileURLToPath(import.meta.url));
const inStrykerSandbox = repoRoot.includes(path.join('.tmp', 'stryker'));
const workspaceAliases = workspaceSourceAliases(
repoRoot,
inStrykerSandbox ? 'disk-manifests' : 'tracked-manifests',
);
const scope = readTestScope();
export default defineConfig({
resolve: {
alias: workspaceAliases,
},
test: {
include: scope ?? ['src/**/*.test.ts', 'packages/*/src/**/*.test.ts'],
exclude: [
...MUTATION_EXCLUDED_TESTS,
...threadHostileTestFiles(repoRoot),
'**/node_modules/**',
],
setupFiles: [...SETUP_FILES],
},
});