Siftline
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

ParameterType
judgeJudge
recipeRecipe
fixturesFixture<Questions>[]
optionsTestRecipeOptions

Returns

Promise<TestReport>

On this page