Socket
Socket
Sign inDemoInstall

jest-circus-allure-environment

Package Overview
Dependencies
467
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.13.4 to 0.13.5

7

CHANGELOG.md
# Changelog
## [0.13.5](https://github.com/ryparker/jest-circus-allure-environment/compare/v0.13.4...v0.13.5) (2020-12-23)
### Bug Fixes
* **allure-reporter.ts:** passing test through pragma methods ([c8a35f6](https://github.com/ryparker/jest-circus-allure-environment/commit/c8a35f63359497165136dcbc5776ba22814ced1b))
## [0.13.4](https://github.com/ryparker/jest-circus-allure-environment/compare/v0.13.3...v0.13.4) (2020-12-23)

@@ -4,0 +11,0 @@

26

dist/allure-reporter.js

@@ -120,3 +120,3 @@ "use strict";

const { code, comments, pragmas } = this.extractCodeDetails(serializedTestCode);
this.setAllureReportPragmas(pragmas);
this.setAllureReportPragmas(currentTest, pragmas);
currentTest.description = `${comments}\n### Test\n\`\`\`typescript\n${code}\n\`\`\`\n`;

@@ -241,3 +241,3 @@ }

}
setAllureReportPragmas(pragmas) {
setAllureReportPragmas(currentTest, pragmas) {
for (let [pragma, value] of Object.entries(pragmas)) {

@@ -249,32 +249,28 @@ if (value instanceof String && value.includes(',')) {

value.forEach(v => {
this.setAllureLabelsAndLinks(pragma, v);
this.setAllureLabelsAndLinks(currentTest, pragma, v);
});
}
if (!Array.isArray(value)) {
this.setAllureLabelsAndLinks(pragma, value);
this.setAllureLabelsAndLinks(currentTest, pragma, value);
}
}
}
setAllureLabelsAndLinks(labelName, value) {
if (!this.currentTest) {
throw new Error('setAllureLabelsAndLinks called while no test is running.');
}
const test = this.currentTest;
setAllureLabelsAndLinks(currentTest, labelName, value) {
switch (labelName) {
case 'issue':
test.addLink(`${this.jiraUrl}${value}`, value, allure_js_commons_1.LinkType.ISSUE);
currentTest.addLink(`${this.jiraUrl}${value}`, value, allure_js_commons_1.LinkType.ISSUE);
break;
case 'tms':
test.addLink(`${this.tmsUrl}${value}`, value, allure_js_commons_1.LinkType.TMS);
currentTest.addLink(`${this.tmsUrl}${value}`, value, allure_js_commons_1.LinkType.TMS);
break;
case 'tag':
case 'tags':
test.addLabel(allure_js_commons_1.LabelName.TAG, value);
currentTest.addLabel(allure_js_commons_1.LabelName.TAG, value);
break;
case 'milestone':
test.addLabel(labelName, value);
test.addLabel('epic', value);
currentTest.addLabel(labelName, value);
currentTest.addLabel('epic', value);
break;
default:
test.addLabel(labelName, value);
currentTest.addLabel(labelName, value);
break;

@@ -281,0 +277,0 @@ }

{
"name": "jest-circus-allure-environment",
"version": "0.13.4",
"version": "0.13.5",
"repository": "https://github.com/ryparker/jest-circus-allure-environment.git",

@@ -5,0 +5,0 @@ "author": "Ryan Parker <ryan.parker3@outlook.com>",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc