API reference@siftline/coreFunctions
testRecipe
function testRecipe(
judge,
recipe,
fixtures,
options?
): Promise<TestReport>;Fires every Fixture through the Judge at once and lets the Judge's gate meter concurrency.
The first JudgeError or JudgeExhaustedError aborts the rest and is rethrown: a partial
accuracy is worse than none.
Parameters
| Parameter | Type |
|---|---|
judge | Judge |
recipe | Recipe |
fixtures | Fixture<Questions>[] |
options | TestRecipeOptions |
Returns
Promise<TestReport>