n8n/packages/workflow/vitest.stryker.config.ts
Mike Repeć 98e0952c36
feat(core): Make the vm expression engine the default (#35738)
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-08-07 09:55:26 +00:00

30 lines
857 B
TypeScript

// Vitest config used by Stryker only — NOT by `pnpm test`, NOT by CI unit runs.
//
// Runs the legacy expression engine, not vm/isolated-vm: the vm evaluator
// SIGABRTs in Stryker's worker on teardown (upstream isolated-vm #464, repros on
// Node 22 + 24). Trade-off: vm-only branches in expression.ts — the production
// default engine — go unscored. Swap
// back to N8N_EXPRESSION_ENGINE=vm once #464 is fixed or we pnpm-patch the guard.
import { defineConfig } from 'vitest/config';
import { createBaseInlineConfig } from '@n8n/vitest-config/node';
const { reporters, outputFile, ...sharedTestConfig } = createBaseInlineConfig({
include: ['test/**/*.test.ts'],
});
export default defineConfig({
test: {
reporters,
outputFile,
projects: [
{
test: {
...sharedTestConfig,
name: 'legacy-engine',
},
},
],
},
});