Skip to content

Jest matcher for asserting valid HAR definitions

License

Notifications You must be signed in to change notification settings

readmeio/jest-expect-har

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Folders and files

NameName
Last commit message
Last commit date
Oct 4, 2023
Sep 1, 2023
Sep 1, 2022
May 3, 2022
Nov 7, 2021
May 3, 2022
Nov 7, 2021
Jul 1, 2023
May 3, 2022
Oct 4, 2023
Oct 7, 2023
Sep 9, 2022
Nov 1, 2023
Oct 4, 2023
May 3, 2022

Repository files navigation

jest-expect-har

A Jest custom matcher for asserting valid HAR definitions.

npm Build

Installation

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

Usage

import toBeAValidHAR from 'jest-expect-har';

expect.extend({ toBeAValidHAR });

test('should be a valid HAR', () => {
  expect(har).toBeAValidHAR();
});

test('should not be a valid HAR', () => {
  expect(invalidHar).not.toBeAValidHAR();
});