JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3334
  • Score
    100M100P100Q132340F
  • License MIT

Jest matcher for asserting valid HAR definitions

Package Exports

  • jest-expect-har

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (jest-expect-har) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

jest-expect-har

A Jest custom matcher for asserting valid HAR definitions.

npm Build

Installation

npm install --save-dev jest-expect-har

Once the package is installed you'll need to let Jest know about it by adding the following into your Jest config (either jest.config.js or under jest in package.json):

"setupFilesAfterEnv": ["jest-expect-har"],

Usage

await expect(har).toBeAValidHAR();