Creates annotations based on the output of json (see how to configure jest
properly).
.github/workflows/your-workflow.yml
- run: jest --json --outputFile=result.json --testLocationInResults
- uses: tanmen/jest-reporter@v1
if: always()
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
We'll need that to enrich the actions run with annotations. The secret is automatically generate by github.com.
The location of the json file.
./result.json
The action names. Make sure this name is unique within the workflow. If it is not unique, it will be overwritten.
jest report
jest --json --outputFile=result.json --testLocationInResults