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
  • !6278

Update to Jest 24

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Administrator requested to merge github/fork/lorenzorapetti/jest24 into master Jan 25, 2019
  • Overview 31
  • Commits 16
  • Pipelines 0
  • Changes 11

Created by: lorenzorapetti

Things to notice before merging

  • There's currently a bug for which jest 24 crashes if it's called programmatically. Until a bugfix comes out, i've added require('jest-cli/build/cli') before require('jest') like this comment suggests. This has been fixed in version 24.1 🎉

  • The current version of jest-pnp-resolver doesn't work because jest changed the file names of jest-resolve. They already have the fix in their code but it isn't published yet. I've filed an issue, but in the meantime i've created pnpResolver.js just to make things work. Fixed in jest-pnp-resolver 1.1.0 🎉

  • Jest 24 comes with a new setupFilesAfterEnv option that replaces setupTestFrameworkScriptFile. It now accepts an array of files instead of a single one. I'm wondering if we should allow multiple setup files?

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/lorenzorapetti/jest24