Socket
Socket
Sign inDemoInstall

jest-junit

Package Overview
Dependencies
Maintainers
2
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jest-junit - npm Package Compare versions

Comparing version 12.3.0 to 13.0.0

2

constants/index.js

@@ -18,2 +18,3 @@ 'use strict';

JEST_JUNIT_REPORT_TEST_SUITE_ERRORS: 'reportTestSuiteErrors',
JEST_JUNIT_NO_STACK_TRACE: "noStackTrace",
JEST_USE_PATH_FOR_SUITE_NAME: 'usePathForSuiteName',

@@ -36,2 +37,3 @@ JEST_JUNIT_TEST_SUITE_PROPERTIES_JSON_FILE: 'testSuitePropertiesFile'

reportTestSuiteErrors: 'false',
noStackTrace: 'false',
testSuitePropertiesFile: 'junitProperties.js'

@@ -38,0 +40,0 @@ },

13

package.json
{
"name": "jest-junit",
"version": "12.3.0",
"version": "13.0.0",
"description": "A jest reporter that generates junit xml files",

@@ -18,9 +18,7 @@ "main": "index.js",

"scripts": {
"test": "jest",
"pretest:ci": "npm uninstall jest babel-jest && npm install jest@$JEST_VERSION babel-jest@$JEST_VERSION --no-save",
"test:ci": "jest --ci"
"test": "jest"
},
"dependencies": {
"mkdirp": "^1.0.4",
"strip-ansi": "^5.2.0",
"strip-ansi": "^6.0.1",
"uuid": "^8.3.2",

@@ -30,5 +28,6 @@ "xml": "^1.0.1"

"devDependencies": {
"jest": "26.0.1",
"libxmljs": "^0.19.7"
"jest": "^27.2.3",
"libxmljs": "^0.19.7",
"slash": "^3.0.0"
}
}

@@ -1,2 +0,2 @@

[![Build Status](https://travis-ci.org/jest-community/jest-junit.svg?branch=master)](https://travis-ci.org/jest-community/jest-junit)
[![Actions Status](https://github.com/jest-community/jest-junit/actions/workflows/nodejs.yml/badge.svg?branch=master)](https://github.com/jest-community/jest-junit/actions)

@@ -58,3 +58,3 @@ # jest-junit

| Environment Variable Name | Reporter Config Name| Description | Default | Possible Injection Values
|--|--|--|--|--|
|---|---|---|---|---|
| `JEST_SUITE_NAME` | `suiteName` | `name` attribute of `<testsuites>` | `"jest tests"` | N/A

@@ -73,2 +73,3 @@ | `JEST_JUNIT_OUTPUT_DIR` | `outputDirectory` | Directory to save the output. | `process.cwd()` | N/A

| `JEST_JUNIT_REPORT_TEST_SUITE_ERRORS` | `reportTestSuiteErrors` | Reports test suites that failed to execute altogether as `error`. _Note:_ since the suite name cannot be determined from files that fail to load, it will default to file path.| `false` | N/A
| `JEST_JUNIT_NO_STACK_TRACE` | `noStackTrace` | Omit stack traces from test failure reports, similar to `jest --noStackTrace` | `false` | N/A
| `JEST_USE_PATH_FOR_SUITE_NAME` | `usePathForSuiteName` | **DEPRECATED. Use `suiteNameTemplate` instead.** Use file path as the `name` attribute of `<testsuite>` | `"false"` | N/A

@@ -75,0 +76,0 @@

@@ -191,3 +191,6 @@ 'use strict';

if (tc.status === 'failed'|| tc.status === 'error') {
tc.failureMessages.forEach((failure) => {
const failureMessages = options.noStackTrace === 'true' && tc.failureDetails ?
tc.failureDetails.map(detail => detail.message) : tc.failureMessages;
failureMessages.forEach((failure) => {
const tagName = tc.status === 'failed' ? 'failure': 'error'

@@ -194,0 +197,0 @@ testCase.testcase.push({

@@ -10,3 +10,5 @@ const path = require('path');

const outputName = (options.uniqueOutputName === 'true') ? getOptions.getUniqueOutputName() : options.outputName
output = path.join(options.outputDirectory, outputName);
output = getOptions.replaceRootDirInOutput(jestRootDir, options.outputDirectory);
const finalOutput = path.join(output, outputName);
return finalOutput;
}

@@ -13,0 +15,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc