mirror of
https://github.com/n8n-io/n8n.git
synced 2026-07-28 19:45:09 +02:00
30 lines
1.3 KiB
JavaScript
30 lines
1.3 KiB
JavaScript
/**
|
|
* Default Stryker config for vitest packages onboarding to mutation health.
|
|
*
|
|
* Deliberately does NOT set `vitest.configFile` — the vitest-runner
|
|
* auto-resolves the package's own `vitest.config.*` from the run cwd (the
|
|
* package dir). That's the whole point: plain vitest packages (DI or not)
|
|
* need no bespoke vitest config. Packages that DO need special handling ship
|
|
* their own `stryker.config.mjs`, which mutate.mjs prefers over this default
|
|
* (e.g. packages/workflow carves out the isolated-vm engine — see DEVP-257).
|
|
*
|
|
* Reporter paths are relative to the run cwd, so reports land in
|
|
* <package-dir>/reports/mutation/ and mutate.mjs reads raw.json from there.
|
|
*/
|
|
/** @type {import('@stryker-mutator/api/core').PartialStrykerOptions} */
|
|
export default {
|
|
packageManager: 'pnpm',
|
|
testRunner: 'vitest',
|
|
plugins: ['@stryker-mutator/vitest-runner'],
|
|
reporters: ['progress', 'clear-text', 'html', 'json'],
|
|
coverageAnalysis: 'perTest',
|
|
// Empty — mutate.mjs always passes --mutate <file>.
|
|
mutate: [],
|
|
htmlReporter: { fileName: 'reports/mutation/raw.html' },
|
|
jsonReporter: { fileName: 'reports/mutation/raw.json' },
|
|
timeoutMS: 60_000,
|
|
concurrency: Number(process.env.STRYKER_CONCURRENCY ?? 4),
|
|
tempDirName: '.stryker-tmp',
|
|
cleanTempDir: true,
|
|
};
|