Skip to content

Latest commit

 

History

History
28 lines (18 loc) · 606 Bytes

README.md

File metadata and controls

28 lines (18 loc) · 606 Bytes

typescript-jest-junit-reporter

Produce Jest JUnit-style XML output from TypeScript compiler messages.

Based on https://github.com/glenjamin/typescript-xunit-xml.

Installation

npm install --save-dev @takeshape/typescript-jest-junit-reporter

Usage

Basic shell usage

tsc | typescript-jest-junit-reporter | tee junit.xml

GitHub Actions - a package.json script in a monorepo

{
  "typecheck": "tsc --noEmit --pretty false | typescript-jest-junit-reporter | tee \"${GITHUB_WORKSPACE}/typecheck-results/${npm_package_name#*\\/}/typescript-results.xml\""
}