Skip to main content
Module

x/unitest/mod.ts>debug

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

Use .debug to output debug info to console with console.debug.

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

test("should output debug info", () => {
  const expect = defineExpect({
    matcherMap: jestExtendedMatcherMap,
    modifierMap: {
      debug,
    },
  });
  expect("Deno").debug.toBeString();

  // Output to console:
  // DEBUG { Context }
});