Skip to content

3.0.0

Compare
Choose a tag to compare
@erunion erunion released this 07 Nov 05:38
· 138 commits to main since this release

BREAKING CHANGE

This release has the matcher fully rewritten in Typescript and to get types working has a new method of importing:

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

What's Changed

  • chore(deps): bump actions/setup-node from 2.4.0 to 2.4.1 by @dependabot in #42
  • chore(deps): bump actions/checkout from 2.3.4 to 2.3.5 by @dependabot in #44
  • chore(deps-dev): bump @readme/eslint-config from 7.1.1 to 7.2.2 by @dependabot in #43
  • feat: rewriting the matcher in typescript by @erunion in #45

New Contributors

Full Changelog: 2.0.3...3.0.0