Skip to content

Releases: jestjs/jest

v28.0.0-alpha.3

17 Feb 15:45
Compare
Choose a tag to compare
v28.0.0-alpha.3 Pre-release
Pre-release

Fixes

  • [jest-resolve] Support directory remapping in package.json exports (#12373)

Full Changelog: https://github.com/facebook/jest/compare/v28.0.0-alpha.2..v28.0.0-alpha.3

v28.0.0-alpha.2

16 Feb 18:16
Compare
Choose a tag to compare
v28.0.0-alpha.2 Pre-release
Pre-release

Features

  • [@jest/expect] New module which extends expect with jest-snapshot matchers (#12404, #12410)
  • [jest-resolve, jest-runtime] Add support for data: URI import and mock (#12392)
  • [pretty-format] New maxWidth parameter (#12402)

Fixes

  • [jest-matcher-utils] Pass maxWidth to pretty-format to avoid printing every element in arrays by default (#12402)

Chore & Maintenance

  • [expect] [BREAKING] Snapshot matcher types are moved to @jest/expect (#12404)

New Contributors

Full Changelog: v28.0.0-alpha.1...v28.0.0-alpha.2

v28.0.0-alpha.1

15 Feb 21:32
Compare
Choose a tag to compare
v28.0.0-alpha.1 Pre-release
Pre-release

Features

  • [babel-jest] Export createTransformer function (#12399)
  • [expect] Expose AsymmetricMatchers, MatcherFunction and MatcherFunctionWithState interfaces (#12363, #12376)
  • [jest-config, @jest/types] Add ci to GlobalConfig (#12378)
  • [@jest/schemas] New module for JSON schemas for Jest's config (#12384)

Fixes

  • [jest-config] Correctly detect CI environment and update snapshots accordingly (#12378)
  • [jest-config] Pass moduleTypes to ts-node to enforce CJS when transpiling (#12397)

Chore & Maintenance

  • [docs, examples] Update React examples to match with the new React guidelines for code examples (#12217)
  • [docs] Add note about not mixing done() with Promises (#11077)
  • [jest-serializer] [BREAKING] Deprecate package in favour of using v8 APIs directly (#12391)

New Contributors

Full Changelog: v28.0.0-alpha.0...v28.0.0-alpha.1

v28.0.0-alpha.0

10 Feb 18:20
Compare
Choose a tag to compare
v28.0.0-alpha.0 Pre-release
Pre-release

Features

  • [jest-config] [BREAKING] Stop shipping jest-environment-jsdom by default (#12354)
  • [jest-config] [BREAKING] Stop shipping jest-jasmine2 by default (#12355)
  • [jest-environment-jsdom] [BREAKING] Upgrade jsdom to 19.0.0 (#12290)
  • [jest-environment-jsdom] [BREAKING] Add default browser condition to exportConditions for jsdom environment (#11924)
  • [jest-environment-node] [BREAKING] Add default node and node-addon conditions to exportConditions for node environment (#11924)
  • [@jest/expect-utils] New module exporting utils for expect (#12323)
  • [jest-resolve] [BREAKING] Add support for package.json exports (#11961)
  • [jest-worker] [BREAKING] Allow only absolute workerPath (#12343)

Fixes

  • [expect] Move typings of .not, .rejects and .resolves modifiers outside of Matchers interface (#12346)
  • [jest-environment-jsdom] Make jsdom accessible to extending environments again (#12232)
  • [jest-jasmine2, jest-types] [BREAKING] Move all jasmine specific types from @jest/types to its own package (#12125)

Chore & Maintenance

  • [*] [BREAKING] Drop support for Node v10 and v15 and target first LTS 16.13.0 (#12220)
  • [*] [BREAKING] Drop support for [email protected], minimum version is now 4.2 (#11142)
  • [*] Bundle all .d.ts files into a single index.d.ts per module (#12345)
  • [expect] [BREAKING] Remove support for importing build/utils (#12323)
  • [expect] [BREAKING] Migrate to ESM (#12344)
  • [jest-cli] Update yargs to v17 (#12357)
  • [jest-config] [BREAKING] Remove getTestEnvironment export (#12353)
  • [@jest/core] Use index.ts instead of jest.ts as main export (#12329)
  • [jest-environment-jsdom] [BREAKING] Migrate to ESM (#12340)
  • [jest-environment-node] [BREAKING] Migrate to ESM (#12340)
  • [@jest/fake-timers] Update @sinonjs/fake_timers to v9 (#12357)
  • [jest-jasmine2, jest-runtime] [BREAKING] Use Symbol to pass jest.setTimeout value instead of jasmine specific logic (#12124)
  • [jest-phabricator] [BREAKING] Migrate to ESM (#12341)
  • [jest-resolve] [BREAKING] Make requireResolveFunction argument mandatory (#12353)
  • [jest-runner] [BREAKING] Remove some type exports from @jest/test-result (#12353)
  • [jest-snapshot] [BREAKING] Migrate to ESM (#12342)
  • [jest-transform] Update write-file-atomic to v4 (#12357)
  • [jest] Use index.ts instead of jest.ts as main export (#12329)

Performance

  • [jest-haste-map] [BREAKING] Default to node crawler over shelling out to find if watchman is not enabled (#12320)

New Contributors

Full Changelog: v27.5.1...v28.0.0-alpha.0

v27.5.1

08 Feb 10:53
Compare
Choose a tag to compare

Features

  • [jest-config] Support comments in JSON config file (#12316)
  • [pretty-format] Expose ConvertAnsi plugin (#12308)

Fixes

  • [expect] Add type definitions for asymmetric closeTo matcher (#12304)
  • [jest-cli] Load binary via exported API (#12315)
  • [jest-config] Replace jsonlint with parse-json (#12316)
  • [jest-repl] Make module importable (#12311 & #12315)

Chore & Maintenance

  • [*] Avoid anonymous default exports (#12313)

New Contributors

Full Changelog: v27.5.0...v27.5.1

v27.5.0

05 Feb 10:00
Compare
Choose a tag to compare

Features

  • [expect] Add asymmetric matcher expect.closeTo (#12243)
  • [jest-mock] Added mockFn.mock.lastCall to retrieve last argument (#12285)

Fixes

  • [expect] Add a fix for .toHaveProperty('') (#12251)
  • [jest-each, @jest/globals] Allow passing ReadonlyArray type of a table to describe.each and test.each (#12297)
  • [@jest/globals] Add missing options argument to jest.doMock typing (#12292)
  • [jest-environment-node] Add atob and btoa (#12269)
  • [jest-matcher-utils] Correct diff for expected asymmetric matchers (#12264)
  • [jest-message-util] Fix .getTopFrame() (and toMatchInlineSnapshot()) with mjs files (#12277)

Chore & Maintenance

  • [*] Update graceful-fs to ^4.2.9 (#11749)

Performance

  • [jest-resolve] perf: skip error creation on not found stat calls (#11749)

New Contributors

Full Changelog: v27.4.7...v27.5.0

v27.4.7

05 Jan 13:06
Compare
Choose a tag to compare

Fixes

  • jest-config Add missing @babel/core dependency (#12216)

Full Changelog: v27.4.6...v27.4.7

v27.4.6

04 Jan 23:05
Compare
Choose a tag to compare

Fixes

  • [jest-environment-node] Add AbortSignal (#12157)
  • [jest-environment-node] Add Missing node global performance (#12002)
  • [jest-runtime] Handle missing mocked property (#12213)
  • [@jest/transform] Update dependency package pirates to 4.0.4 (#12002)

Performance

  • jest-config perf: only register ts-node once when loading TS config files (#12160)

New Contributors

Full Changelog: v27.4.5...v27.4.6

v27.4.5

13 Dec 19:38
Compare
Choose a tag to compare

Fixes

  • [jest-worker] Stop explicitly passing process.env (#12141)

New Contributors

Full Changelog: v27.4.4...v27.4.5

v27.4.4

10 Dec 04:44
Compare
Choose a tag to compare

Fixes

  • [babel-jest] Add process.version chunk to the cache key (#12122)
  • [jest-environment] Add mocked to jest object (#12133)
  • [jest-worker] Stop explicitly passing execArgv (#12128)

Chore & Maintenance

  • [website] Fix the card front that looks overlapping part of the card back

New Contributors

Full Changelog: v27.4.3...v27.4.4