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

    Module testtaker

    the following shim (polyfill) defines a simple standalone Deno.Test-like replacement for non-deno environments.

    the only two things implemented here are:

    • test: Deno.Test function.
    • step: Deno.TestContext interface, which is passed onto your test-function that you feed to Deno.test.
    Note

    make sure that your test-function's body is side-effect free if you will be using async test functions in parallel. otherwise, always perform a top-level await on all Deno.tests. deno itself waits for all async tests to end their execution, so we don't have to write await before every Deno.test. however, you don't get that luxury in the browser or other runtimes. thus, you should always await your calls to Deno.test if you wish to use this shim/polyfill.

      // adapting a deno-native test file to become browser compatible:
    - Deno.test("my test", (t): Promise => {
    + await Deno.test("my test", (t): Promise => {
      	// do the test
      })
    

    Interfaces

    TestDefinition
    TestContext
    TestSpec

    Type Aliases

    TestFunction
    LogFn

    Variables

    subtestResults
    test

    Functions

    injectTestShim