Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
jest-xunit
Advanced tools
jest-xunit is a reporter for Jest that produces an XML in xunit format.
jest-xunit is a reporter for Jest that produces an XML in xunit format.
npm i -D jest-xunit
Then in your jest config specify jest-xunit as a reporter:
{
...
reporters: [
'default', // keep the default reporter
[
'jest-xunit',
{
traitsRegex: [
{ regex: /\(Test Type:([^,)]+)(,|\)).*/g, name: 'Category' },
{ regex: /.*Test Traits: ([^)]+)\).*/g, name: 'Type' }
]
}
]
]
...
}
configKey | Description | Default |
---|---|---|
filename | The filename of the results. The reporter outputs xml format | test-results.xml |
outputPath | The path where the test results should be generated. | process.cwd() |
traitsRegex | An array of objects with the following keys: _ regex - A regex to be used to extract the traits _ name - The name of the extract trait type | [] |
FAQs
jest-xunit is a reporter for Jest that produces an XML in xunit format.
The npm package jest-xunit receives a total of 3,731 weekly downloads. As such, jest-xunit popularity was classified as popular.
We found that jest-xunit demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.