Skip to content

[Bug]: Deprecated dependencies: babel-plugin-istanbul pulls in [email protected] and [email protected] via test-exclude #15777

@arcos-dev

Description

@arcos-dev

Version

v30.0.5

Steps to reproduce

1. Create a new project:
   ```bash
   mkdir jest-deprecated-test && cd jest-deprecated-test
   npm init -y
  1. Install Jest (v30.0.5) and ts-jest (optional):

  2. Observe the following warnings during installation:

    npm WARN deprecated [email protected]: Glob versions prior to v9 are no longer supported
    npm WARN deprecated [email protected]: This module is not supported, and leaks memory...
    
  3. Run:

    npm ls inflight glob
  4. Output shows the deprecated dependency chain:

Expected behavior

Jest should avoid including deprecated dependencies such as [email protected] and [email protected].

Updating babel-plugin-istanbul to use a newer test-exclude (which depends on glob@9+) would resolve this, removing the deprecated and unsupported packages from the dependency tree.

Actual behavior

Installing [email protected] results in deprecated dependencies being installed:

These come from the following chain:


@jest/transform → babel-plugin-istanbul → test-exclude\@6.0.0 → glob\@7.2.3 → inflight\@1.0.6

This causes warning messages during npm install and could raise issues in automated environments (CI, audits, etc).

Additional context

Eliminating deprecated packages improves security, stability, and audit cleanliness. inflight in particular is known to leak memory and has been archived.

Modernizing these dependencies will enhance trust and reduce noise in Jest installations.

Environment

- Node.js version: v22.18.0
- npm version: 11.5.2
- Jest version: 30.0.5
- OS: Windows 11

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions