Type Alias FunctionTestCase<FunctionToTest>

FunctionTestCase: 1 extends Parameters<FunctionToTest>["length"]
    ? Parameters<FunctionToTest>["length"] extends 0 | 1
        ? FunctionTestCaseSingleInput<FunctionToTest>
        : FunctionTestCaseMultipleInputs<FunctionToTest>
    : 0 extends Parameters<FunctionToTest>["length"]
        ? BaseTestCase<Awaited<ReturnType<FunctionToTest>>>
        : FunctionTestCaseMultipleInputs<FunctionToTest>

A function test case used for itCases.

Type Parameters