jsdom 1) is a headless browser 2) implemented completely in JS on node

It simulates:


You can use JsDom directly or via wrapping library:


yarn add jsdom
yarn add @types/jsdom
It does not have the capability to render visual content

Discover More
Browser - Document variable (DOM) - Javascript

In a browser, the document is: a DOM document (in-memory tree) of a XML document (generally a HTML dom document) The document is provided by the browser via its DOM webapi (Not by the Javascript...
DOM - Environment (Library and Languages)

A DOM environment is a library that implements the DOM API Browser: Standard support with the DOM Web API jquery is a higher interface based on the Javascript Web API but does not provide a DOM...
DOM - Library

DOM - Test

Testing dom manipulation is done via a headless browser. Jest uses by default JSDOM. Example tutorial DOM...
HTML - (Document) Parser

HTML documents consist of a tree of elements and text. The specification defines a set of elements that can be used in HTML, along with rules. If a document is transmitted with the text/html mime type,...
Javascript - Jest Test Runner

Jest is a test runner from Facebook for client-side JavaScript applications and React applications specifically. Jest ships with jsdom for DOM manipulation testing....
Javascript - XML / DOM

A browser has already a dom implementation with the webapi DOMParserDOMParser There is no native DOM library. jsdom - it runs only on node as it's dependent on the node module path, fs, .... See...
Javascript Test - Runner

in Javascript. See also: Winner: Jest because: it's fully integrated in my IDE it supports React out of the box it can also test Typescript it forces you to not start a browser to test...
React - Test

Interactive development & testing environment for React, React-Native, Vue UI components - ...

Share this page:
Follow us:
Task Runner