Socket
Socket
Sign inDemoInstall

expect

Package Overview
Dependencies
42
Maintainers
5
Versions
235
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
Previous1
57
24Next

27.4.2

Diff

Changelog

Source

27.4.2

Fixes

  • [jest-worker] Add additional execArgv to filter (#12103)
simenb
published 27.4.1 •

Changelog

Source

27.4.1

Fixes

  • [jest-worker] Filter execArgv correctly (#12097)
simenb
published 27.4.0 •

Changelog

Source

27.4.0

Features

  • [expect] Enhancing the toHaveProperty matcher to support array selection (#12092)
  • [jest-core] Add support for testResultsProcessor written in ESM (#12006)
  • [jest-diff, pretty-format] Add compareKeys option for custom sorting of object keys (#11992)
  • [jest-mock] Add ts-jest mock util functions (#12089)

Fixes

  • [expect] Allow again expect.Matchers generic with single value (#11986)
  • [jest-circus, jest-jasmine2] Avoid false concurrent test failures due to unhandled promise rejections (#11987)
  • [jest-config] Add missing slash dependency to package.json (#12080)
  • [jest-core] Incorrect detection of open ZLIB handles (#12022)
  • [jest-diff] Break dependency cycle (#10818)
  • [jest-environment-jsdom] Add @types/jsdom dependency (#11999)
  • [jest-environment-jsdom] Do not reset the global.document too early on teardown (#11871)
  • [jest-transform] Improve error and warning messages (#11998)
  • [jest-worker] Pass execArgv correctly to worker_threads worker (#12069)

Chore & Maintenance

  • [docs] CLI options alphabetized (#11586)
  • [jest-runner] Add info regarding timers to forcedExit message(#12083)
  • [*] Replaced substr method with substring (#12066)
  • [*] Add types entry to all export maps (#12073)
simenb
published 27.3.1 •

Changelog

Source

27.3.1

Fixes

  • [expect] Make expect extension properties configurable (#11978)
  • [expect] Fix .any() checks on primitive wrapper classes (#11976)

Chore & Maintenance

  • [expect] BigInt global is always defined, don't check for its existence at runtime (#11979)
  • [jest-config, jest-util] Use ci-info instead of is-ci to detect CI environment (#11973)
simenb
published 27.3.0 •

Changelog

Source

27.3.0

Features

  • [jest-config] Add testEnvironmentOptions.html to apply to jsdom input (#11950)
  • [jest-resolver] Support default export (.) in exports field if main is missing (#11919)

Fixes

  • [expect] Tweak and improve types (#11949)
  • [jest-runtime] Ensure absolute paths can be resolved within test modules (#11943)
  • [jest-runtime] Fix instanceof for ModernFakeTimers and LegacyFakeTimers methods (#11946)
simenb
published 27.2.5 •

Changelog

Source

27.2.5

Features

  • [jest-config] Warn when multiple Jest configs are located (#11922)

Fixes

  • [expect] Pass matcher context to asymmetric matchers (#11926 & #11930)
  • [expect] Improve TypeScript types (#11931)
  • [expect] Improve typings of toThrow() and toThrowError() matchers (#11929)
  • [jest-cli] Improve --help printout by removing defunct --browser option (#11914)
  • [jest-haste-map] Use distinct cache paths for different values of computeDependencies (#11916)
  • [@jest/reporters] Do not buffer console.logs when using verbose reporter (#11054)

Chore & Maintenance

  • [expect] Export default matchers (#11932)
  • [@jest/types] Mark deprecated configuration options as @deprecated (#11913)
simenb
published 27.2.4 •

Changelog

Source

27.2.4

Features

  • [expect] Add equality checks for Array Buffers in expect.ToStrictEqual() (#11805)

Fixes

  • [jest-snapshot] Correctly indent inline snapshots (#11560)
simenb
published 27.2.3 •

Changelog

Source

27.2.3

Features

  • [@jest/fake-timers] Update @sinonjs/fake-timers to v8 (#11879)

Fixes

  • [jest-config] Parse testEnvironmentOptions if received from CLI (#11902)
  • [jest-reporters] Call destroy on v8-to-istanbul converters to free memory (#11896)
simenb
published 27.2.2 •

Changelog

Source

27.2.2

Fixes

  • [jest-runtime] Correct wrapperLength value for ESM modules. (#11893)
simenb
published 27.2.1 •

Changelog

Source

27.2.1

Features

  • [jest-transform] Improve the unexpected token error message. (#11807)

Fixes

  • [jest-runtime] Fix regression when using jest.isolateModules and mocks (#11882)
  • [jest-runtime] Include test name when importing modules after test has completed (#11885)
  • [jest-runtime] Error when ESM import is used after test is torn down (#11885)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc