Version 1.0.2
@stackline/types-jest
TypeScript definitions for jest
Independent maintenance of @types/jest 30.0.0. Original authors and licenses are retained.
Installation
# Preserve existing imports with an npm alias
npm install @types/jest@npm:@stackline/types-jest@1.0.2
# Or use the scoped package name in your imports
npm install @stackline/types-jest@1.0.2Node.js: See compatibility notes. Read the compatibility and maintenance notes before migrating.
Usage and API
@stackline/types-jest
TypeScript definitions for jest.
Documentation | npm | Issues | Repository
Current package version: 1.0.2
Why this package?
@stackline/types-jest is the Stackline-maintained distribution of @types/jest@30.0.0. It is an independent continuation of @types/jest; original authors and licenses remain credited below.
Compatibility
| Item | Value |
|---|---|
| Package | @stackline/types-jest@1.0.2 |
| API target | @types/jest@30.0.0 |
| Supported Node.js | See supported framework requirements |
| License | MIT |
| Types | index.d.ts |
| Runtime dependencies | expect, pretty-format |
Installation
npm install --save-dev @stackline/types-jest
Preserve existing imports and plugin resolution with an npm alias:
npm install --save-dev @types/jest@npm:@stackline/types-jest
Use the original @types/* alias for automatic TypeScript type discovery and existing compilerOptions.types settings. A scoped-only installation does not automatically expose the original type-package name.
Usage and API reference
Installation
npm install --save @stackline/types-jest
Summary
This package contains type definitions for jest (https://jestjs.io/).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jest.
Additional Details
- Last updated: Mon, 16 Jun 2025 07:35:37 GMT
- Dependencies: expect, pretty-format
Credits
These definitions were written by Asana (https://asana.com) // Ivo Stratev, jwbay, Alexey Svetliakov, Alex Jover Morales, Allan Lukwago, Ika, Waseem Dahman, Jamie Mason, Douglas Duteil, Ahn, Jeff Lau, Andrew Makarov, Martin Hochel, Sebastian Sebald, Andy, Antoine Brault, Gregor Stamać, ExE Boss, Alex Bolenok, Mario Beltrán Alarcón, Tony Hallett, Jason Yu, Pawel Fajfer, Alexandre Germain, and Adam Jones.
Credits and original authors
- Original project: @types/jest.
- Asana.
- jwbay.
- Alexey Svetliakov.
- Alex Jover Morales.
- Allan Lukwago.
- Ika.
- Waseem Dahman.
- Jamie Mason.
- Douglas Duteil.
- Ahn.
- Jeff Lau.
- Andrew Makarov.
- Martin Hochel.
- Sebastian Sebald.
- Andy.
- Antoine Brault.
- Gregor Stamać.
- ExE Boss.
- Alex Bolenok.
- Mario Beltrán Alarcón.
- Tony Hallett.
- Jason Yu.
- Pawel Fajfer.
- Alexandre Germain.
- Adam Jones.
- Stackline maintenance: Alexandro Paixao Marques and Stackline contributors.
Original copyright, license notices and contributor acknowledgements remain part of this distribution. Stackline maintenance does not replace authorship of the original work.
License
MIT. See the license and notice files in the repository.
Community and Links
Use this repository's issue tracker for reproducible bugs and feature requests. Join r/Stackline for examples, usage questions and release discussions.
Upstream issues and maintenance review
Upstream and review
- Source: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/cc23761e2c40a25fc41c96ac5df96cf59992599f/types/jest
- Published baseline:
@types/jest@30.0.0(2025-06-16T07:35:50.850Z). - Upstream tarball integrity:
sha512-XTYugzhuwqWjws0CVz8QpM36+T+Dz5mTEBKhNs/esGLnCIlGdRy+Dq78NRjd7ls7r8BC8ZRMOrKlkO1hU0JOwA==. index.d.tswas compared byte-for-byte with that commit and matched before maintenance changes.- This standalone snapshot repository preserves original source content, contributors and license, but does not claim to preserve the DefinitelyTyped monorepo Git history.
- Only original-parent direct dependencies are in scope; dependencies of this declaration package are not recursively forked.
Issue review
GitHub search on 2026-09-29 used repo:DefinitelyTyped/DefinitelyTyped is:issue is:open "jest" and the corresponding closed query. Counts: open: 17 results (collected 17), closed: 133 results (collected 100). Search results can contain unrelated packages; they are not evidence that every result is a defect here. Archived search responses and baseline comparisons are retained in the release research evidence. No issue was posted or modified.
Issue #34617 (each done callbacks) is already supported by the selected declarations; the original reproduction is a positive compile test. #41179 requests new assertion-function semantics and is not a safe compatibility fix. #60223 requests broader callbacks; existing strict void/promise callback contract is preserved. Historical reports against Jest 23-27 do not justify changing the selected Jest30 API.
Validation
Real declaration usage and negative type assertions are compiled with TypeScript 5.4.6 and 5.9.3, with strict: true and skipLibCheck: false, from source and isolated direct/alias tarball installs. CI also checks the complete dependency audit, CodeQL, package contents and exact CI archive identity before GitHub-only publication. Registry verification compiles direct and aliased installs rather than importing these type-only packages as JavaScript.
Correct the inherited typeScriptVersion: 5.1 metadata to 5.4, the already-established minimum of Jest30 (https://jestjs.io/docs/upgrading-to-jest30). The original 5.1 compilation fails in upstream jest-mock declarations on esnext.disposable; no declaration API or dependency major was changed. The published Jest30 line remains unchanged and is tested with TypeScript5.4.5 and5.9.3.
Release changes
Changelog
1.0.0
- First Stackline maintenance release based on @types/jest 30.0.0.
- Preserve the declaration API, compatibility line, contributors and MIT license.
- Add isolated TypeScript compilation tests, complete dependency audit, CodeQL and exact-artifact GitHub publication with provenance and immutable release evidence.
Correct the inherited typeScriptVersion: 5.1 metadata to 5.4, the already-established minimum of Jest30 (https://jestjs.io/docs/upgrading-to-jest30). The original 5.1 compilation fails in upstream jest-mock declarations on esnext.disposable; no declaration API or dependency major was changed. The published Jest30 line remains unchanged and is tested with TypeScript5.4.5 and5.9.3.
Release files and references
- README.md
- UPSTREAM.md
- CHANGELOG.md
- LICENSE
- NOTICE
- Package and publication metadata
- Full text documentation
Package bytes, npm provenance and the immutable GitHub release were verified for this version. Security checks describe the reviewed release; documented compatibility risks and upstream reports are not blanket claims of resolution.