Skip to main content
Module

x/unitest/mod.ts>expect

🃏 Deno-first universal unit testing framework
Latest
variable expect
import { expect } from "https://deno.land/x/unitest@v1.0.0-beta.82/mod.ts";

Consists of a built-in matcher for jest and is ready to use out of the box.

import { expect, test } from "https://deno.land/x/unitest@$VERSION/mod.ts";

test("expect should have default jest matchers", async () => {
  await expect(Promise.resolve("test")).resolves.toBe("test");
  expect({}).toEqual({});
});