Packages

@jest/environment

30.5.2 · 18 Sep 2026MIT80.2M / weekRepositoryHomepagenpmAtom feed

Your version

27.3.0

17 Oct 2021Where it was published

27.5.1 is the newest release of 27.x.

In short

2 new3 fixed

Release note

Features

  • jest-config: Add testEnvironmentOptions.html to apply to jsdom input

  • jest-resolver: Support default export (.) in exports field if main is missing

Fixes

  • expect: Tweak and improve types

  • jest-runtime: Ensure absolute paths can be resolved within test modules

  • jest-runtime: Fix instanceof for ModernFakeTimers and LegacyFakeTimers methods

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.