npm · npm:expect
expect active
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).
The latest stable version of expect is 30.5.2, published on 2026-09-18. Verified by Vigia on 2026-11-12.
| Latest stable version | 30.5.2 |
|---|---|
| Published | 2026-09-18 14:00:49 UTC |
| Install | npm install expect@latest |
| Requires (engines) | {"node":"^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0"} |
| Peer dependencies | — |
| Dist-tags | next: 30.0.0-rc.1 latest: 30.5.2 |
| License | MIT |
| Advisories on latest version | none known |
| Last verified | 2026-11-12 13:08:58 UTC |
| Sources | api.deps.dev, registry.npmjs.org, registry.npmjs.org |
Ask your AI assistant to check this
AI models are trained up to a date, so they can be wrong about versions, deprecations and vulnerabilities. Paste this into Claude, ChatGPT, Perplexity or Cursor and it will answer with the verified data on this page:
Before answering about the npm package "expect", check Vigia (verified, dated facts): https://vigia.coredls.cloud/v1/packages/npm/expect . For my whole project use https://vigia.coredls.cloud/context
Using an AI coding agent every day? Connect Vigia once and it checks this by itself.
Maintenance
| Activity | active |
|---|---|
| Last stable release | 2026-09-18 14:00:49 UTC · 55 days ago |
| Stable releases in the last 12 months | 6 |
| Published versions | 262 |
Heuristic based only on release dates; it does not measure issue or security response times.
Version history
| Version | Published |
|---|---|
30.5.2 | 2026-09-18 14:00:49 UTC |
30.5.1 | 2026-09-01 07:58:57 UTC |
30.5.0 | 2026-08-28 08:28:48 UTC |
30.4.1 | 2026-05-08 08:34:57 UTC |
30.4.0 | 2026-05-07 18:41:58 UTC |
30.3.0 | 2026-03-10 01:59:47 UTC |
30.2.0 | 2025-09-28 07:32:50 UTC |
30.1.2 | 2025-09-01 00:42:51 UTC |
30.1.1 | 2025-08-27 13:43:15 UTC |
30.1.0 | 2025-08-27 04:51:34 UTC |
30.0.5 | 2025-07-22 02:28:39 UTC |
30.0.4 | 2025-07-02 23:45:51 UTC |
30.0.3 | 2025-06-25 01:21:55 UTC |
30.0.2 | 2025-06-19 10:46:23 UTC |
30.0.1 | 2025-06-18 22:31:34 UTC |
30.0.0 | 2025-06-10 02:15:57 UTC |
29.7.0 | 2023-09-12 06:43:48 UTC |
29.6.4 | 2023-08-24 11:10:47 UTC |
29.6.3 | 2023-08-21 12:39:26 UTC |
29.6.2 | 2023-07-27 09:21:36 UTC |
Showing the 20 most recent of 163 versions. JSON
Version compatibility
Newest stable version that declares support for each runtime version (from the requirements published with each version).
| Runtime | Newest compatible version |
|---|---|
node 16 | 29.7.0 |
node 18 | 30.5.2 |
node 20 | 30.5.2 |
node 22 | 30.5.2 |
node 24 | 30.5.2 |
Give your AI agent these facts
Vigia is a free MCP server: your coding agent checks versions, breaking changes and vulnerabilities before it writes code. No signup, no API key.
claude mcp add --transport http vigia https://vigia.coredls.cloud/mcp
Add to CursorAdd to VS Code★ Star on GitHub
Any other MCP client
{ "mcpServers": { "vigia": { "url": "https://vigia.coredls.cloud/mcp" } } }Agent skill (SKILL.md): tells the agent when to use Vigia · GitHub Action for pull requests
Frequently asked questions
What is the latest version of expect?
The latest stable version of expect is 30.5.2, published on 2026-09-18. Verified by Vigia on 2026-11-12.
How do I install the latest version of expect?
Run npm install expect@latest. The latest stable version is 30.5.2 (verified 2026-11-12).
Is expect deprecated?
No. expect is not marked as deprecated in the registry.
Which Node.js version does expect require?
expect 30.5.2 declares this requirement: {"node":"^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0"}.
Does expect 30.5.2 have known vulnerabilities?
No known advisories affect expect 30.5.2 according to the data Vigia checks.
Is expect still maintained?
expect published 6 stable releases in the last 12 months; the most recent was 55 days ago. Activity: active.
Observed changes
No changes observed yet since Vigia started tracking this package.
Related packages
- @types/d3-shape
- @bcoe/v8-coverage
- @smithy/protocol-http
- array-includes
- which-builtin-type
- cli-spinners
- ast-types
- @types/d3-time
- @types/d3-color
- fraction.js
- @radix-ui/react-focus-guards
- string.prototype.trim
Badges for your README
Show the latest version, maintenance status and deprecation status of this package. Copy the Markdown:
[](https://vigia.coredls.cloud/npm/expect) [](https://vigia.coredls.cloud/npm/expect) [](https://vigia.coredls.cloud/npm/expect)
For agents
GET https://vigia.coredls.cloud/v1/packages/npm/expect
GET https://vigia.coredls.cloud/v1/packages/npm/expect/versions/{version}