</>PackageGraphPackageGraph

expect

npmv30.5.1TypeScript

This package exports the `expect` function used in [Jest](https://jestjs.io/). You can find its documentation [on Jest's website](https://jestjs.io/docs/expect).

Adopt with care

expect is usable, with caveats. Pulls in 35 transitive packages, about 3.5 MB installed (at least — some of the tree is still being crawled).

  • ?Adoption: grade ?, Not reported by this registry.

    No download data reported for this package yet.

  • AMaintenance: grade A, Excellent.

    Last published 9 days ago. 24 releases in the last 2 years.

  • CWeight: grade C, Fair — worth a look.

    Pulls in 35 transitive packages, about 3.5 MB installed (at least — some of the tree is still being crawled).

  • ASupply chain: grade A, Excellent.

    No install scripts, 5 maintainers, and a contained dependency surface.

  • ALicense: grade A, Excellent.

    MIT — permissive, with no copyleft found in the dependency tree.

Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.

Install cost

What you actually take on by adding expect to a project.

6
Direct dependencies

Runtime packages this one declares itself.

35
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

3.5 MB
Install size

Unpacked size of this package plus its entire runtime tree.

4
Tree depth

Longest resolved dependency chain below this package.

Part of this dependency tree has not been crawled yet, so these figures are a lower bound rather than a final total.

Licenses in the dependency tree

ISCMIT

Every license you inherit by installing expect, not just its own. Check this before a legal review, not after.

Compatibility

Node.js
node ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0
Module format
ESM + CommonJS
TypeScript
Types included
Install scripts
None

Dependencies

Declared by expect v30.5.1. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (4)

@fast-check/jest ^2.1.1@jest/test-utils 30.5.1chalk ^4.1.2immutable ^5.1.2

Used by

Popular packages that depend on expect.

Relationship graph

Dependencies (left) and dependents (right) of expect.

Frequently installed together

Release history

24 releases in the last two years, typically about 6 days apart.

Recent versions of expect
VersionPublishedSizeLicense
30.5.1latest9 days ago125 KBMIT
30.5.012 days ago125 KBMIT
30.4.14 months ago128 KBMIT
30.4.04 months ago128 KBMIT
30.3.06 months ago128 KBMIT
30.2.011 months ago144 KBMIT
30.1.21 year ago144 KBMIT
30.1.11 year ago144 KBMIT
30.1.01 year ago144 KBMIT
30.0.51 year ago144 KBMIT
30.0.41 year ago143 KBMIT
30.0.31 year ago143 KBMIT
30.0.21 year ago128 KBMIT
30.0.11 year ago128 KBMIT
30.0.01 year ago128 KBMIT

Overview

expect is an npm package that this package exports the `expect` function used in [Jest](https://jestjs.io/). You can find its documentation [on Jest's website](https://jestjs.io/docs/expect). It has 11 known dependents in the graph. The latest version is 30.5.1, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need this package exports the `expect` function used in [Jest](https://jestjs.io/). You can find its documentation [on Jest's website](https://jestjs.io/docs/expect) and value a focused solution.

When not to use it

Consider an alternative if you need to or if a more actively-maintained option better fits your npm stack.

Pros

  • Ships TypeScript type definitions.
  • Clear open-source license (MIT).

Cons

  • No significant drawbacks detected from available metadata.

Auto-generated from collected registry metadata. No external claims are inferred.

Maintainers

Frequently asked questions

Should I use expect?

expect is usable, with caveats. Pulls in 35 transitive packages, about 3.5 MB installed (at least — some of the tree is still being crawled).

How do I install expect?

Run `npm install expect` to add expect to your npm project.

How many dependencies does expect have?

expect declares 10 direct dependencies and pulls in 35 packages in total once its runtime tree is resolved totalling about 3.5 MB on disk.

What license is expect released under?

expect is distributed under the MIT license. Its dependency tree also includes: ISC, MIT.

How popular is expect?

npm does not publish download counts. Within PackageGraph's crawl, 11 known packages depend on expect.

Is expect still maintained?

The most recent release of expect (v30.5.1) was published 9 days ago.

Does expect run install scripts?

No. expect does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.