0.3.1 • Published 4 months ago

@mochify/driver-jsdom v0.3.1

Weekly downloads
-
License
MIT
Repository
-
Last release
4 months ago

Mochify driver for JSDOM

Run tests in JSDOM.

Usage

Install the package from npm:

npm i @mochify/driver-jsdom -D

and pass it to the CLI:

mochify --driver jsdom ...

Driver options

The driver allows the following options to be set:

stderr

Defines the stream the test output will be written to. Defaults to process.stderr

strictSSL

strictSSL can be set to false to disable the requirement that SSL certificates be valid. Defaults to false.

pretendToBeVisual

When the pretendToBeVisual option is set to true, jsdom will pretend that it is rendering and displaying content. Defaults to true.

url

Run tests in the context of the given URL. Defaults to http://localhost.

Passing through other options to JSDOM

In addition to the driver options documented above, driver-hsom allows you to pass through all of JSOM's other constructor options using the defaults as described here. Note that it's not possible to use a custom virtualConsole or set the runScripts option as the driver requires to set these itself in order to function correctly.

0.3.1

4 months ago

0.3.0

4 months ago

0.2.0

4 months ago

0.1.1

3 years ago

0.1.0

3 years ago