Packages

@jest/test-result

30.5.2 · 18 Sep 2026MIT70.6M / weekRepositoryHomepagenpmAtom feed

Your version

26.0.0

major4 May 2020Where it was published

26.6.2 is the newest release of 26.x.

In short

11 breaking2 new6 fixed5 internal

  • breaking

    jest-environment-jsdom: Upgrade jsdom to v16

  • breaking

    jest-circus: Fail tests if a test takes a done callback and have return values

  • breaking

    jest-circus: Throw a proper error if a test / hook is defined asynchronously

  • breaking

    jest-circus: Align execution order of tests to match jasmine's top to bottom order

  • breaking

    jest-config, jest-resolve: Remove support for browser field

  • breaking

    *: TypeScript definitions requires a minimum of TypeScript v3.8

  • breaking

    *: Drop support for Node 8

  • breaking

    expect, jest-mock, pretty-format: Remove build-es5 from package

Release note

Features

  • breaking

    jest-environment-jsdom: Upgrade jsdom to v16

  • @jest/fake-timers: Add possibility to use a modern implementation of fake timers, backed by @sinonjs/fake-timers

  • jest-runtime: Add createMockFromModule as an alias for genMockFromModule

Fixes

  • babel-jest: Handle null being passed to createTransformer

  • [jest-circus, jest-console, jest-jasmine2, jest-reporters, jest-util, pretty-format] Fix time durating formatting and consolidate time formatting code

  • breaking

    jest-circus: Fail tests if a test takes a done callback and have return values

  • breaking

    jest-circus: Throw a proper error if a test / hook is defined asynchronously

  • jest-circus: Throw more descriptive error if hook is defined inside test

  • breaking

    jest-circus: Align execution order of tests to match jasmine's top to bottom order

  • breaking

    jest-config, jest-resolve: Remove support for browser field

  • jest-haste-map: Stop reporting files as changed when they are only accessed

  • jest-resolve: Show relative path from root dir for module not found errors

  • jest-runtime: Fix absolute path moduleNameMapper + jest.mock bug

Chore & Maintenance

  • breaking

    *: TypeScript definitions requires a minimum of TypeScript v3.8

  • breaking

    *: Drop support for Node 8

  • breaking

    expect, jest-mock, pretty-format: Remove build-es5 from package

  • breaking

    @jest/fake-timers, @jest/environment: Rename LolexFakeTimers to ModernFakeTimers

  • breaking

    jest-haste-map: Removed providesModuleNodeModules

  • breaking

    jest-runtime: Remove long-deprecated require.requireActual and require.requireMock methods