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

Configure Jest to bail on first error

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Administrator requested to merge github/fork/mpj/patch-1 into master Nov 28, 2016
  • Overview 10
  • Commits 1
  • Pipelines 0
  • Changes 1

Created by: mpj

Per default, Jest runs through all tests even if it encounters an error. This might be a sensible default for Jest in general (it's possibly nice in a CI setting) but I find it very annoying when actually developing, because the "PASS" messages obscure the test error in the console (especially if you have a small console window, which you often do when developing):

Failing test in small console window (current behaviour): screenshot 2016-11-28 17 43 06

The problem is here that the user has to scroll up to see the error. The problem can be postponed by having a larger terminal, but eventually your test suite will will grow so large that it obscured the entire window no matter how big it is.

Same test failing (with this pull request applied): screenshot 2016-11-28 17 42 05

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/mpj/patch-1