@oazmi/kitchensink - v0.10.1
    Preparing search index...

    Interface TestContext

    this interface describes your current test context, similar to Deno.TestContext.

    interface TestContext {
        name: string;
        origin: "unknown";
        step: TestSpec;
        parent?: TestContext;
        logger: { log: LogFn; error: LogFn };
        "[subtestResults]": { name: string; passed: boolean; error?: any }[];
    }
    Index

    Properties

    name: string

    the name of the test.

    anon-test-${test_number}, when no name is provided by the user.

    origin: "unknown"

    this is supposed to be the string url of the current test file in deno, but since that doesn't make much sense in browser environment, I will always set it to "unknown".

    "unknown"

    step: TestSpec

    lets you attach a sub-test step to your upper-level test.

    parent?: TestContext

    if this test context is a sub-step of another, then the parent/upper-level test context will be referenced here.

    logger: { log: LogFn; error: LogFn }

    a customizable logger. defaults to the built-in console object. you can turn off logging by replacing the members with a dummy no-op (no-operation) function.

    "[subtestResults]": { name: string; passed: boolean; error?: any }[]

    the child sub-test results get accumulated in here.