All Versions
128
Latest Version
Avg Release Cycle
9 days
Latest Release
-

Changelog History
Page 1

  • v29.3.1 Changes

    ๐Ÿ›  Fixes

    • [jest-config] Do not warn about preset in ProjectConfig (#13583)

    ๐ŸŽ Performance

    • [jest-transform] Defer creation of cache directory (#13420)
  • v29.3.0 Changes

    ๐Ÿ”‹ Features

    • ๐Ÿ‘ [jest-runtime] Support WebAssembly (Wasm) imports in ESM modules (#13505)

    ๐Ÿ›  Fixes

    • [jest-config] Add config validation for projects option (#13565)
    • ๐Ÿคก [jest-mock] Treat cjs modules as objects so they can be mocked (#13513)
    • ๐Ÿ‘ท [jest-worker] Throw an error instead of hanging when jest workers terminate unexpectedly (#13566)

    ๐Ÿšง Chore & Maintenance

    • โšก๏ธ [@jest/transform] Update convert-source-map (#13509)
    • ๐Ÿ“„ [docs] Mention toStrictEqual in UsingMatchers docs. (#13560)
  • v29.2.2 Changes

    ๐Ÿ›  Fixes

    • โœ… [@jest/test-sequencer] Make sure sharding does not produce empty groups (#13476)
    • โœ… [jest-circus] Test marked as todo are shown as todo when inside a focussed describe (#13504)
    • ๐Ÿคก [jest-mock] Ensure mock resolved and rejected values are promises from correct realm (#13503)
    • [jest-snapshot] Don't highlight passing asymmetric property matchers in snapshot diff (#13480)

    ๐Ÿšง Chore & Maintenance

    • โšก๏ธ [docs] Update link to Jest 28 upgrade guide in error message (#13483)
    • โšก๏ธ [jest-runner, jest-watcher] Update emittery (#13490)
  • v29.2.1 Changes

    ๐Ÿ”‹ Features

    • ๐Ÿคก [@jest/globals, jest-mock] Add jest.Spied* utility types (#13440)

    ๐Ÿ›  Fixes

    • ๐ŸŽ [jest-environment-node] make globalThis.performance writable for Node 19 and fake timers (#13467)
    • โช [jest-mock] Revert #13398 to restore mocking of setters (#13472)

    ๐ŸŽ Performance

    • [*] Use sha1 instead of sha256 for hashing (#13421)
  • v29.2.0 Changes

    ๐Ÿ”‹ Features

    • ๐Ÿ‘€ [@jest/cli, jest-config] A seed for the test run will be randomly generated, or set by a CLI option (#13400)
    • ๐Ÿ‘€ [@jest/cli, jest-config] --show-seed will display the seed value in the report, and can be set via a CLI flag or through the config file (#13400)
    • [jest-config] Add readInitialConfig utility function (#13356)
    • โœ… [jest-core] Allow testResultsProcessor to be async (#13343)
    • ๐Ÿ‘€ [@jest/environment, jest-environment-node, jest-environment-jsdom, jest-runtime] Add getSeed() to the jest object (#13400)
    • [expect, @jest/expect-utils] Allow isA utility to take a type argument (#13355)
    • ๐Ÿ”€ [expect] Expose AsyncExpectationResult and SyncExpectationResult types (#13411)

    ๐Ÿ›  Fixes

    • ๐Ÿ”Œ [babel-plugin-jest-hoist] Ignore TSTypeQuery when checking for hoisted references (#13367)
    • [jest-core] Fix detectOpenHandles false positives for some special objects such as TLSWRAP (#13414)
    • ๐Ÿคก [jest-mock] Fix mocking of getters and setters on classes (#13398)
    • โช [jest-reporters] Revert: Transform file paths into hyperlinks (#13399)
    • [@jest/types] Infer type of each table correctly when the table is a tuple or array (#13381)
    • [@jest/types] Rework typings to allow the *ReturnedWith matchers to be called with no argument (#13385)

    ๐Ÿšง Chore & Maintenance

    • โšก๏ธ [*] Update @babel/* deps, resulting in slightly different stack traces for each (#13422)

    ๐ŸŽ Performance

    • [jest-runner] Do not instrument v8 coverage data if coverage should not be collected (#13282)
  • v29.1.2 Changes

    ๐Ÿ›  Fixes

    • [expect, @jest/expect] Revert buggy inference of argument types for *CalledWith and *ReturnedWith matchers introduced in 29.1.0 (#13339)
    • ๐Ÿ‘ท [jest-worker] Add missing dependency on jest-util (#13341)
  • v29.1.1 Changes

    ๐Ÿ›  Fixes

    • โช [jest-mock] Revert #13145 which broke mocking of transpiled ES modules
  • v29.1.0 Changes

    ๐Ÿ”‹ Features

    • ๐Ÿ‘ [expect, @jest/expect] support type inference for function parameters in CalledWith assertions (#13268)
    • [expect, @jest/expect] Infer type of *ReturnedWith matchers argument (#13278)
    • [@jest/environment, jest-runtime] Allow jest.requireActual and jest.requireMock to take a type argument (#13253)
    • ๐Ÿคก [@jest/environment] Allow jest.mock and jest.doMock to take a type argument (#13254)
    • [@jest/fake-timers] Add jest.now() to return the current fake clock time (#13244, #13246)
    • ๐Ÿคก [@jest/mock] Add withImplementation method for temporarily overriding a mock (#13281)
    • [expect] Export toThrow* matchers (#13328)

    ๐Ÿ›  Fixes

    • [jest-circus, jest-jasmine2] Fix error messages for Node's assert.throes (#13322)
    • [jest-haste-map] Remove __proto__ usage (#13256)
    • ๐Ÿคก [jest-mock] Improve spyOn typings to handle optional properties (#13247)
    • ๐Ÿคก [jest-mock] Fix mocking of getters and setters on classes (#13145)
    • [jest-snapshot] Throw useful error when an array is passed as property matchers (#13263)
    • ๐Ÿ“œ [jest-snapshot] Prioritize parser used in the project (#13323)
    • ๐Ÿ [jest-transform] Attempt to work around issues with atomic writes on Windows (#11423)
  • v29.0.3 Changes

    ๐Ÿ”‹ Features

    • [@jest/environment, jest-runtime] Allow passing a generic type argument to jest.createMockFromModule<T>() method (#13202)
    • [expect] Expose ExpectationResult type (#13240)
    • [jest-snapshot] Expose Context type (#13240)
    • ๐Ÿคก [@jest/globals] Add jest.Mock type helper (#13235)

    ๐Ÿ›  Fixes

    • โฑ [jest-core] Capture execError during TestScheduler.scheduleTests and dispatch to reporters (#13203)
    • [jest-resolve] Make sure to resolve module paths after looking at exports (#13242)
    • [jest-resolve] Improve error on module not found deep in the require stack (#8704)
    • [jest-snapshot] Fix typings of snapshot matchers (#13240)

    ๐Ÿšง Chore & Maintenance

    • ๐Ÿ›  [*] Fix inconsistent workspace prefixes (#13217)
    • [jest-haste-map] Expose a minimal public API to TypeScript (#13023)
  • v29.0.2 Changes

    ๐Ÿ”‹ Features

    • [jest-transform] Expose TransformFactory type (#13184)

    ๐Ÿ›  Fixes

    • ๐Ÿคก [babel-plugin-jest-hoist] Support imported jest in mock factory (#13188)
    • ๐Ÿ“‡ [jest-mock] Align the behavior and return type of generateFromMetadata method (#13207)
    • ๐Ÿ‘ [jest-runtime] Support jest.resetModules() with ESM (#13211)