How fan-out works
When there is no external business ID, a.eval.ts file exports an array by default:
Generated IDs
If the file isevals/sql.eval.ts, the generated IDs are:
evals/swelancer.eval.ts and the key is 15193, the ID is swelancer/15193. A key must be a non-empty path segment: it cannot be . or .., and it cannot contain /, \, or control characters. NiceEval discovers cases in key lexicographic order, so a change in the data source’s return order never changes run order.
Loading from YAML and JSON
loadYaml and loadJson require a decoder. The unvalidated dynamic value exists only at the decoder input; after validation, the return value is strongly typed data that the Eval can use directly.
Filtering dataset evals
Datasets vs separate files
- Use a dataset
- Use separate files
The cases have exactly the same structure. Only the input and expected output change.