sh33dafi / jest-sonar

A jest reporter that generates sonar reports
MIT License
49 stars 11 forks source link

Map filePath to source filePath if sourcemap exists #71

Open kayahr opened 1 year ago

kayahr commented 1 year ago

This PR implements a lookup for an optional sourcemap file and maps the test filename reported by Jest to the source filename found in the sourcemap. This is useful when Jest works with the compiled JavaScript files instead of using ts-jest to work with the TypeScript sources.

Fixes #70