mirror of
https://github.com/n8n-io/n8n.git
synced 2026-06-19 07:36:52 +00:00
3bff0f52b9
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
27 lines
1.1 KiB
JavaScript
27 lines
1.1 KiB
JavaScript
/** @type {import('@stryker-mutator/api/core').PartialStrykerOptions} */
|
|
export default {
|
|
packageManager: 'pnpm',
|
|
testRunner: 'vitest',
|
|
plugins: ['@stryker-mutator/vitest-runner'],
|
|
// Use the Stryker-specific vitest config (vm-engine only) — see
|
|
// vitest.stryker.config.ts for the rationale.
|
|
vitest: {
|
|
configFile: 'vitest.stryker.config.ts',
|
|
},
|
|
reporters: ['progress', 'clear-text', 'html', 'json'],
|
|
coverageAnalysis: 'perTest',
|
|
// Default empty — the `mutate` npm script always passes --mutate <file>.
|
|
// Direct invocation with no --mutate will fail fast (allowEmpty: false).
|
|
mutate: [],
|
|
htmlReporter: { fileName: 'reports/mutation/raw.html' },
|
|
jsonReporter: { fileName: 'reports/mutation/raw.json' },
|
|
timeoutMS: 60_000,
|
|
// Each Stryker worker spawns vitest with one project (vm-engine, via
|
|
// vitest.stryker.config.ts). Default 4 is fine on CI runners; lower
|
|
// locally if you hit OOM during the initial dry run via
|
|
// `STRYKER_CONCURRENCY=1`.
|
|
concurrency: Number(process.env.STRYKER_CONCURRENCY ?? 4),
|
|
tempDirName: '.stryker-tmp',
|
|
cleanTempDir: true,
|
|
};
|