jest-zone-patch

0.0.10 • Public • Published

jest-zone-patch

Enables Jest functions to be run within Zone.js context, specifically for Angular apps.

Usage

Place it in your setupJestTestFramework.ts (or so) file

import 'jest-zone-patch';

And run it as Jest's setupTestFrameworkScriptFile:

"jest"{
  "setupTestFrameworkScriptFile": "<rootDir>/src/setupJestTestFramework.ts"
}

It's crucial to run this patch here, because at this point patched functions like test or describe are available in global scope.

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i jest-zone-patch

      Weekly Downloads

      4,902

      Version

      0.0.10

      License

      BSD-3-Clause

      Unpacked Size

      6.06 kB

      Total Files

      5

      Last publish

      Collaborators

      • thymikee