Jest Run Config Source

Answered

There's a feature I want to implement in my own Run Config plugin that looks like it would be similar to a feature that's in the Jest Run Config, but I'm not sure where to see the source code for the Jest Run Config. Is the plugin for Jest open source? If not, would it be possible to request the source? 

The feature that I'm interested in seeing the implementation of is highlighting the piece of code that causes a test to fail. When you run Jest tests and it fails, the expression that it fails on becomes highlighted. In my plugin (that's for mutation testing), I want to highlight the piece of source code that fails. I couldn't decide if Annotator or ExternalAnnotator (or maybe a CoverageEngine?) would be better, and I'd like to see how it's implemented for Jest tests

1 comment
Comment actions Permalink

Jest support is a part of the JavaScript plugin, which is not open-sourced.

Answering your second question - Jest implements both - CoverageEngine and Annotator, which is an extension of the SimpleCoverageAnnotator class.

0

Please sign in to leave a comment.