Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • C create-react-app
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,547
    • Issues 1,547
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 417
    • Merge requests 417
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Meta
  • create-react-app
  • Merge requests
  • !8955

Upgrade to Jest 26

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Administrator requested to merge github/fork/ianschmitz/jest-26 into master May 04, 2020
  • Overview 3
  • Commits 9
  • Pipelines 0
  • Changes 11

Created by: ianschmitz

Closes #8954 (closed).

We can ship the TypeScript template referencing @types/jest@25 until the 26 version drops. There should only be minor differences that we can call out in our release notes. From Simen:

main changes from 25 to 26 would be removal of require.requireActual, adding jest.useFakeTimers('modern') and adding jest.createMockFromModule()

Still todo:

  • Figure out types migration path - we include @types/jest in the TypeScript template. We may require TypeScript 3.8: https://github.com/facebook/jest/pull/9823. Need to sync with Simen to figure out the details

cc @SimenB.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/ianschmitz/jest-26