this function mimics the behavior of Deno.test so that it can be used in non-deno environments.
import { assertEquals } from"jsr:@std/assert"
awaittest("testing test", async (t) => { awaitt.step("non-problematic steps should have no problems!", () => { assertEquals(1 + 1, 2) })
awaitt.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") })
this function mimics the behavior of
Deno.testso that it can be used in non-deno environments.