deno-spec

Provides a spec-like (describe, it, etc) testing framework on top of Deno.test(...).

Example

import { describe, before, it } from "https://deno.land/x/spec/mod.ts"
import { assertEquals } from "https://deno.land/std/testing/asserts.ts"

describe("foo", () => {
    before(ctx => {
        ctx.foo = 'bar'
    })

    it("equals 'bar'", ctx => {
        assertEquals(ctx.foo, 'bar')
    })
})

References

License

This project is licensed under the terms of the MIT license.