jest-environment-jsdom-fourteen

  • Version 1.0.1
  • Published
  • 8.74 kB
  • 6 dependencies
  • MIT license

Install

npm i jest-environment-jsdom-fourteen
yarn add jest-environment-jsdom-fourteen
pnpm add jest-environment-jsdom-fourteen

Overview

JSDOM environment for Jest with JSDOM 14

Index

Classes

class JSDOMEnvironment

class JSDOMEnvironment implements JestEnvironment {}

    constructor

    constructor(config: Config.ProjectConfig, options?: EnvironmentContext);

      property dom

      dom: any;

        property errorEventListener

        errorEventListener: (event: Event & { error: Error }) => void;

          property fakeTimers

          fakeTimers: any;

            property global

            global: any;

              property moduleMocker

              moduleMocker: any;

                method runScript

                runScript: (script: Script) => any;

                  method setup

                  setup: () => Promise<void>;

                    method teardown

                    teardown: () => Promise<void>;

                      Package Files (1)

                      Dependencies (6)

                      Dev Dependencies (11)

                      Peer Dependencies (0)

                      No peer dependencies.

                      Badge

                      To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

                      You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/jest-environment-jsdom-fourteen.

                      • Markdown
                        [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/jest-environment-jsdom-fourteen)
                      • HTML
                        <a href="https://www.jsdocs.io/package/jest-environment-jsdom-fourteen"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>