jest-phabricator
TypeScript icon, indicating that this package has built-in type declarations

20.0.0 • Public • Published

jest-phabricator

This Repo contains the testResultsProcessor needed to create the coverage map needed by Phabricator to show inline coverage at diff time.

How to use it

In example/JestUnitTestEngine you'll find an example of a Phabricator Jest UnitTestEngine reference implementation.

You need to add the jest unit engine to your .arcconfig:

...

"unit.engine" : "JestUnitTestEngine",

...

In JestUnitTestEngine there are a couple of constants you probably need to modify:

  • PROCESSOR points to the path or the processor
  • JEST_PATH is the path to Jest

If you need to pass to Jest a custom configuration you can either use JEST_PATH and point it to a bash/script file that will just jest with --config=path/to/config or alternatively you can add the config option in the getJestOptions php function.

Readme

Keywords

none

Package Sidebar

Install

npm i jest-phabricator@20.0.0

Version

20.0.0

License

BSD-3-Clause

Last publish

Collaborators

  • simenb
  • cpojer
  • aaronabramov
  • openjs-operations