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 1.0.3 to 1.1.0

7

CHANGELOG.md
# Changelog
# [1.1.0](https://github.com/ryparker/jest-circus-allure-environment/compare/v1.0.3...v1.1.0) (2021-03-31)
### Features
* **attachments:** added support for new `AttachmentOption` param and removed `crypto` dep ([cb8df94](https://github.com/ryparker/jest-circus-allure-environment/commit/cb8df94c7e7204c7039aef17df3e983c7244d92c)), closes [#176](https://github.com/ryparker/jest-circus-allure-environment/issues/176) [#175](https://github.com/ryparker/jest-circus-allure-environment/issues/175)
## [1.0.3](https://github.com/ryparker/jest-circus-allure-environment/compare/v1.0.2...v1.0.3) (2021-03-25)

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

4

dist/allure-reporter.d.ts
/// <reference types="node" />
import { AllureGroup, AllureRuntime, AllureStep, AllureTest, Category, ExecutableItemWrapper } from 'allure-js-commons';
import { AllureGroup, AllureRuntime, AllureStep, AttachmentOptions, AllureTest, Category, ExecutableItemWrapper } from 'allure-js-commons';
import JestAllureInterface, { ContentType } from './jest-allure-interface';

@@ -37,3 +37,3 @@ import type * as jest from '@jest/types';

endTest(): void;
writeAttachment(content: Buffer | string, type: ContentType): string;
writeAttachment(content: Buffer | string, type: ContentType | string | AttachmentOptions): string;
pushStep(step: AllureStep): void;

@@ -40,0 +40,0 @@ popStep(): void;

@@ -167,5 +167,10 @@ "use strict";

writeAttachment(content, type) {
// Because Allure-JS-Commons does not support HTML we can workaround by providing the file extension.
const fileExtension = type === jest_allure_interface_1.ContentType.HTML ? 'html' : undefined;
return this.allureRuntime.writeAttachment(content, { contentType: type, fileExtension });
if (type === jest_allure_interface_1.ContentType.HTML) {
// Allure-JS-Commons does not support HTML so we workaround this by providing the file extension.
return this.allureRuntime.writeAttachment(content, {
contentType: type,
fileExtension: 'html'
});
}
return this.allureRuntime.writeAttachment(content, type);
}

@@ -172,0 +177,0 @@ pushStep(step) {

/// <reference types="node" />
import { Allure, AllureRuntime, AllureStep, AllureTest, ExecutableItemWrapper, Severity, Status, StepInterface } from 'allure-js-commons';
import { Allure, AllureRuntime, AllureStep, AllureTest, AttachmentOptions, ExecutableItemWrapper, Severity, Status, StepInterface } from 'allure-js-commons';
import StepWrapper from './step-wrapper';

@@ -46,9 +46,9 @@ import type AllureReporter from './allure-reporter';

content: string;
type: ContentType;
type: ContentType | string | AttachmentOptions;
}>): void;
description(markdown: string): void;
descriptionHtml(html: string): void;
attachment(name: string, content: Buffer | string, type: ContentType): void;
testAttachment(name: string, content: Buffer | string, type: ContentType): void;
attachment(name: string, content: Buffer | string, type: ContentType | string | AttachmentOptions): void;
testAttachment(name: string, content: Buffer | string, type: ContentType | string | AttachmentOptions): void;
get currentTest(): AllureTest;
}
{
"name": "jest-circus-allure-environment",
"version": "1.0.3",
"version": "1.1.0",
"repository": "https://github.com/ryparker/jest-circus-allure-environment.git",

@@ -78,8 +78,7 @@ "author": "Ryan Parker <ryan.parker3@outlook.com>",

"allure-js-commons": "2.0.0-beta.9",
"ansi_up": "^4.0.4",
"crypto": "^1.0.1",
"ansi_up": "^5.0.0",
"jest-circus": "^26.6.3",
"jest-docblock": "^26.0.0",
"jest-environment-node": "^26.6.2",
"lodash": "^4.17.20",
"lodash": "^4.17.21",
"prettier": "^2.2.1",

@@ -86,0 +85,0 @@ "pretty-format": "^26.6.2",

Sorry, the diff of this file is not supported yet

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