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

Update to latest Jest reporter API #25

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mhodgson
Copy link

@mhodgson mhodgson commented Oct 4, 2018

This update should still be backwards compatible, but it will also work with the latest versions of Jest.

@matdec01
Copy link

Please can this be merged in?

@matdec01
Copy link

matdec01 commented Nov 5, 2018

@winterbe Is this repo still maintained?

@winterbe
Copy link
Owner

winterbe commented Nov 5, 2018 via email

@jarkkojarvinen
Copy link

Could you merge this please

@Codex-
Copy link

Codex- commented Apr 1, 2019

+1 to merging this

@mindausai
Copy link

+2 to merging this!

@jarkkojarvinen
Copy link

@winterbe can you please merge this. Fix works fine.

Workaround for a meanwhile:

  • add to package.json
    "jest-teamcity-reporter": "github:mhodgson/jest-teamcity-reporter"

@tarmooo
Copy link

tarmooo commented Jan 29, 2020

@winterbe any news on this?

* This should eventually be turned into a proper class (whenever the testResultsProcessor option is phased out)
* https://facebook.github.io/jest/docs/en/configuration.html#reporters-array-modulename-modulename-options
*/
this.onRunComplete = (_contexts, testResult) => {

Choose a reason for hiding this comment

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

this.onTestResult would be even better. It fires when tests from a particular file are finished

Choose a reason for hiding this comment

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

Code coverage data will be enriched only for final results, wont'it?

Choose a reason for hiding this comment

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

Then maybe it should be two separate listeners: onTestResult for logTestSuite and onRunComplete for logCoverage

@tadger
Copy link

tadger commented Jan 19, 2021

Yep but I’m on holidays afk. Will look into this later.

@winterbe Sorry for rushing this a bit, but holidays ended yet?

@rhuitl
Copy link

rhuitl commented Nov 6, 2021

This seems to be a good replacement that works with the latest Jest: https://github.com/itereshchenkov/jest-teamcity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.