Socket
Socket
Sign inDemoInstall

@jest/expect

Package Overview
Dependencies
152
Maintainers
6
Versions
51
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @jest/expect

This package extends `expect` library with `jest-snapshot` matchers. It exports `jestExpect` object, which can be used as standalone replacement of `expect`.


Version published
Weekly downloads
14M
decreased by-2.7%
Maintainers
6
Install size
15.9 MB
Created
Weekly downloads
 

Changelog

Source

29.4.1

Features

  • [expect, jest-circus, @jest/types] Implement numPassingAsserts of testResults to track the number of passing asserts in a test (#13795)
  • [jest-core] Add newlines to JSON output (#13817)
  • [@jest/reporters] Automatic log folding in GitHub Actions Reporter (#13626)

Fixes

  • [@jest/expect-utils] toMatchObject diffs should include Symbol properties (#13810)
  • [jest-runtime] Handle missing replaceProperty (#13823)
  • [@jest/types] Add partial support for done callbacks in typings of each (#13756)

Readme

Source

@jest/expect

This package extends expect library with jest-snapshot matchers. It exports jestExpect object, which can be used as standalone replacement of expect.

The jestExpect function used in Jest. You can find its documentation on Jest's website.

FAQs

Last updated on 26 Jan 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc