jest-junit
Advanced tools
Comparing version 12.3.0 to 13.0.0
@@ -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 @@ }, |
{ | ||
"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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
35618
392
250
3
+ Addedansi-regex@5.0.1(transitive)
+ Addedstrip-ansi@6.0.1(transitive)
- Removedansi-regex@4.1.1(transitive)
- Removedstrip-ansi@5.2.0(transitive)
Updatedstrip-ansi@^6.0.1