Skip to main content
Module

x/tincan/mod.ts

A BDD testing library for Deno
Latest
import * as tincan from "https://deno.land/x/tincan@1.0.2/mod.ts";

Variables

Function mocking utilities re-exported from allain/expect. See https://deno.land/x/expect@v0.2.9/ for more information.

Functions

Register a hook to run after all the test suites/cases in the current scope have completed.

Register a hook to run after every test case.

Register a hook to run before any of the tests in the current scope are ran. If the hook fails, it would only report an error and test cases would still run.

Register a hook to run before every test case. If the hook fails, it would only report an error and test cases would still run.

Register a suite to group related tests.

Matchers re-exported from allain/expect. These are not required to do assertions in tincan, so you can use the standard library (std/testing) or bring your own matchers. See https://deno.land/x/expect@v0.4.0/ for more information.

Register a test case.

Call at the bottom of every test file after all the test suites/cases have been registered.