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

    Variable testConst

    test: TestSpec = ...

    this function mimics the behavior of Deno.test so that it can be used in non-deno environments.

    import { assertEquals } from "jsr:@std/assert"

    await test("testing test", async (t) => {
    await t.step("non-problematic steps should have no problems!", () => {
    assertEquals(1 + 1, 2)
    })

    await t.step("erroneous steps should be reported!", (t2) => {
    // silencing the logger for this step.
    t2.logger = { error: () => undefined, log: () => undefined }
    assertEquals("the earth is flat", "the earth is an oblate ellipsoid")
    })

    const [result_1, result_2] = t[subtestResults]
    assertEquals(result_1.passed, true)
    assertEquals(result_1.error, undefined)
    assertEquals(result_2.passed, false)
    assertEquals(result_2.error instanceof Error, true)

    // popping away the failing result, so that the main test itself does not fail.
    t[subtestResults].pop()

    // TODO: add more test cases, such as teting multi-depth steps, etc...
    })