Skip to main content
Latest

Extends the Deno runtime global scope with various testing tools.

  • [x] std/testing/asserts.ts
  • [x] std/testing/bdd.ts
  • [x] std/testing/mock.ts
  • [x] std/testing/snapshot.ts

Also exposes global variables fc (fast-check) and chai (chai.js).

To use in your project, just import this deps.ts file once and all of your favorite testing tools will be immediately available in the program.

Examples

Example 1

import "./deps.ts";

describe("chai.js test suite", () =>
  it("should exist in the global scope", () =>
    assertEquals(typeof chai, "object")));

describe("bdd testing works", () =>
  it("should be really awesome", () =>
    chai.assert.notInstanceOf(chai, fc.anything)));
This module does not provide any exports.