jest-environment-url
TypeScript icon, indicating that this package has built-in type declarations

0.1.7 • Public • Published

jest-environment-url

Load a URL into JSDOM for testing

Status

This is an experiment that hasn't been extensively tested yet, but feedback is welcome

Installation

npm install --save-dev jest-environment-url
yarn add --dev jest-environment-url

Configuration

JSON

"testEnvironment": "jest-environment-url",
"testEnvironmentOptions": {
  "url": "https://example.com/"
}

DocBlock

/**
 * @jest-environment url
 * @jest-environment-options {"url": "https://example.com/"}
 */

Example

Inspiration

Based on jest-environment-jsdom (© Facebook with MIT license)

Readme

Keywords

Package Sidebar

Install

npm i jest-environment-url

Weekly Downloads

0

Version

0.1.7

License

ISC

Unpacked Size

10.4 kB

Total Files

14

Last publish

Collaborators

  • nickmccurdy