0.1.7 • Published 3 years ago
jest-environment-url v0.1.7
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-urlyarn add --dev jest-environment-urlConfiguration
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)