Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve output in github actions for jest tests #3269

Merged
merged 1 commit into from
Apr 11, 2023
Merged

Conversation

richvdh
Copy link
Member

@richvdh richvdh commented Apr 11, 2023

Two functional changes here:

  • Set silent: false for the GitHub Actions Reporter, which stops it swallowing failure reasons (otherwise it only puts it in an annotation)
  • Enable the summary reporter, which makes it easier to see why a test run as a whole failed.

Setting silent: false requires us to use a config file, and using a config file overrides the config from package.json. So in the end it's easier just to have one config file with some intelligence for whether we are in GHA or not.


This change is marked as an internal change (Task), so will not be included in the changelog.

@richvdh richvdh requested review from a team as code owners April 11, 2023 18:36
@richvdh richvdh requested a review from germain-gg April 11, 2023 18:36
@richvdh richvdh added the T-Task Tasks for the team like planning label Apr 11, 2023
@richvdh richvdh requested a review from justjanne April 11, 2023 18:36
@@ -122,28 +122,12 @@
"prettier": "2.8.7",
"rimraf": "^4.0.0",
"terser": "^5.5.1",
"ts-node": "^10.9.1",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is needed to support having a jest config file in typescript

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TS FTW

Copy link
Member

@t3chguy t3chguy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@richvdh richvdh added this pull request to the merge queue Apr 11, 2023
Merged via the queue into develop with commit 6049c0b Apr 11, 2023
@richvdh richvdh deleted the rav/better_jest_ci branch April 11, 2023 19:15
richvdh added a commit to element-hq/element-web that referenced this pull request Apr 12, 2023
Configure the Github Actions Reporter with silent: false, keeping it from swallowing failure reasons.

Much the same as matrix-org/matrix-js-sdk#3269.
texuf pushed a commit to texuf/matrix-js-sdk that referenced this pull request Apr 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-Task Tasks for the team like planning
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants