Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including frint-test-utils with all npm packages installed. Try it out:

var frintTestUtils = require("frint-test-utils")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

frint-test-utils v5.7.2

Test utilities for Frint

frint-test-utils

npm

Test utilities for Frint


Guide

Installation

$ npm install --save-dev frint-test-utils

Usage

With mocha:

$ mocha --require frint-test-utils/register './test/**/spec.js'

Sets resetDOM globally in your environment, and takes over the console for hiding deprecated warnings.


API

resetDOM

resetDOM()

Resets the DOM using jsdom.

Returns

void.

takeOverConsole

takeOverConsole(console)

Takes over console for hiding deprecated warnings.

Arguments

  1. console (Object): The console object to take over.

Returns

Function: Call the returned function to undo the take over.

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free