nodom-global

1.0.1 • Public • Published

nodom-global travis coveralls npm

Similarly as jsdom-global, nodom-global enables DOM in Node.js, except that it uses NO:DOM library instead of jsdom. It's useful for running test cases made against RE:DOM libraries.

It injects document, window and other DOM API found in NO:DOM into your Node.js environment.

Installation

nodom-global requires NO:DOM.

npm install --save-dev nodom nodom-global

Usage with Mocha

Run Mocha with -r nodom-global/register command line argument to automatically register NO:DOM into your Node.js environment.

mocha -r nodom-global/register test.js

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    0

Package Sidebar

Install

npm i nodom-global

Weekly Downloads

0

Version

1.0.1

License

MIT

Last publish

Collaborators

  • rauli