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.
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();