n8n/packages/@n8n/instance-ai/evaluations/data/workflows/index.ts
José Braulio González Valido 44471d1c94
fix(ai-builder): Validate only the selected case files in the eval push CLI (no-changelog) (#39248)
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-24 20:11:04 +00:00

17 lines
526 B
TypeScript

import {
loadEvalCasesFromDir,
type LoadEvalCasesOptions,
type WorkflowTestCaseWithFile,
} from '../../utils/load-eval-cases';
export type { WorkflowTestCaseWithFile } from '../../utils/load-eval-cases';
/** Load test cases with their file slugs (for LangSmith dataset sync derived IDs). */
export function loadWorkflowTestCasesWithFiles(
filter?: string,
exclude?: string,
options?: LoadEvalCasesOptions,
): WorkflowTestCaseWithFile[] {
return loadEvalCasesFromDir(__dirname, filter, exclude, undefined, options);
}