jest-circus-allure-environment
Advanced tools
Comparing version 0.11.4 to 0.12.0
@@ -0,1 +1,13 @@ | ||
# [0.12.0](https://github.com/ryparker/jest-circus-allure-environment/compare/v0.11.4...v0.12.0) (2020-10-29) | ||
### Bug Fixes | ||
* **logs:** removed debug logging of errors ([dcbe549](https://github.com/ryparker/jest-circus-allure-environment/commit/dcbe549ce4dac7dca4b22716540902f5b1f2d3c1)) | ||
### Features | ||
* **allure suites page:** test file paths will now show just the file name in the 3rd tier ([3fc991f](https://github.com/ryparker/jest-circus-allure-environment/commit/3fc991f123c5bb6678c812dba3a3adc6ee285d54)) | ||
## [0.11.4](https://github.com/ryparker/jest-circus-allure-environment/compare/v0.11.3...v0.11.4) (2020-09-11) | ||
@@ -2,0 +14,0 @@ |
@@ -86,4 +86,4 @@ "use strict"; | ||
case 'hook_failure': | ||
console.log('TEST_FN_FAILURE ERROR:', event.error); | ||
console.log('TEST_FN_FAILURE HOOK.ASYNCERROR:', event.hook.asyncError); | ||
// Console.log('TEST_FN_FAILURE ERROR:', event.error); | ||
// console.log('TEST_FN_FAILURE HOOK.ASYNCERROR:', event.hook.asyncError); | ||
this.reporter.endHook((_a = event.error) !== null && _a !== void 0 ? _a : event.hook.asyncError); | ||
@@ -149,3 +149,3 @@ break; | ||
*/ | ||
console.log('ERROR EVENT:', event); | ||
// console.log('ERROR EVENT:', event); | ||
break; | ||
@@ -156,3 +156,3 @@ default: | ||
*/ | ||
console.log('UNHANDLED EVENT:', event); | ||
// console.log('UNHANDLED EVENT:', event); | ||
break; | ||
@@ -159,0 +159,0 @@ } |
@@ -261,3 +261,4 @@ "use strict"; | ||
const pathsArray = testPath.split('/'); | ||
const [parentSuite, suite, ...subSuites] = pathsArray; | ||
const [parentSuite, ...suites] = pathsArray; | ||
const subSuite = suites.pop(); | ||
if (parentSuite) { | ||
@@ -267,7 +268,7 @@ this.currentTest.addLabel(allure_js_commons_1.LabelName.PARENT_SUITE, parentSuite); | ||
} | ||
if (suite) { | ||
this.currentTest.addLabel(allure_js_commons_1.LabelName.SUITE, suite); | ||
if (suites.length > 0) { | ||
this.currentTest.addLabel(allure_js_commons_1.LabelName.SUITE, suites.join(' > ')); | ||
} | ||
if (subSuites.length > 0) { | ||
this.currentTest.addLabel(allure_js_commons_1.LabelName.SUB_SUITE, subSuites.join(' > ')); | ||
if (subSuite) { | ||
this.currentTest.addLabel(allure_js_commons_1.LabelName.SUB_SUITE, subSuite); | ||
} | ||
@@ -274,0 +275,0 @@ } |
{ | ||
"name": "jest-circus-allure-environment", | ||
"version": "0.11.4", | ||
"version": "0.12.0", | ||
"repository": "https://github.com/ryparker/jest-circus-allure-environment.git", | ||
@@ -55,14 +55,14 @@ "author": "Ryan Parker <ryan.parker3@outlook.com>", | ||
"dependencies": { | ||
"@jest/environment": "^26.3.0", | ||
"@jest/reporters": "^26.4.1", | ||
"@jest/types": "^26.3.0", | ||
"@jest/environment": "^26.6.1", | ||
"@jest/reporters": "^26.6.1", | ||
"@jest/types": "^26.6.1", | ||
"allure-js-commons": "2.0.0-beta.8", | ||
"ansi_up": "^4.0.4", | ||
"crypto": "^1.0.1", | ||
"jest-circus": "^26.4.2", | ||
"jest-circus": "^26.6.1", | ||
"jest-docblock": "^26.0.0", | ||
"jest-environment-node": "^26.3.0", | ||
"jest-environment-node": "^26.6.1", | ||
"lodash": "^4.17.20", | ||
"prettier": "^2.1.1", | ||
"pretty-format": "^26.4.2", | ||
"prettier": "^2.1.2", | ||
"pretty-format": "^26.6.1", | ||
"strip-ansi": "^6.0.0" | ||
@@ -75,15 +75,15 @@ }, | ||
"@types/highlight.js": "^9.12.4", | ||
"@types/jest": "^26.0.13", | ||
"@types/lodash": "^4.14.161", | ||
"@types/node": "^14.10.0", | ||
"commitizen": "^4.2.1", | ||
"@types/jest": "^26.0.15", | ||
"@types/lodash": "^4.14.163", | ||
"@types/node": "^14.14.6", | ||
"commitizen": "^4.2.2", | ||
"cz-conventional-changelog": "^3.3.0", | ||
"eslint-config-xo-typescript": "^0.32.0", | ||
"eslint-plugin-jest": "^24.0.0", | ||
"eslint-config-xo-typescript": "^0.35.0", | ||
"eslint-plugin-jest": "^24.1.0", | ||
"husky": "^4.3.0", | ||
"jest": "^26.4.2", | ||
"lint-staged": "^10.3.0", | ||
"semantic-release": "^17.1.1", | ||
"typescript": "^4.0.2", | ||
"xo": "^0.33.1" | ||
"jest": "^26.6.1", | ||
"lint-staged": "^10.5.0", | ||
"semantic-release": "^17.2.1", | ||
"typescript": "^4.0.5", | ||
"xo": "^0.34.1" | ||
}, | ||
@@ -90,0 +90,0 @@ "engines": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
73298
846
Updated@jest/environment@^26.6.1
Updated@jest/reporters@^26.6.1
Updated@jest/types@^26.6.1
Updatedjest-circus@^26.6.1
Updatedprettier@^2.1.2
Updatedpretty-format@^26.6.1