Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jest-allure2

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jest-allure2 - npm Package Compare versions

Comparing version 1.0.4 to 1.1.1

.github/ISSUE_TEMPLATE.md

1

dist/src/index.d.ts
export { registerAllure } from './setup';
export * from 'allure-js-commons';
"use strict";
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
Object.defineProperty(exports, "__esModule", { value: true });
var setup_1 = require("./setup");
exports.registerAllure = setup_1.registerAllure;
__export(require("allure-js-commons"));
//# sourceMappingURL=index.js.map

@@ -0,3 +1,7 @@

/// <reference types="node" />
import { JasmineAllureReporter } from 'allure-jasmine';
import { Allure, TestResult } from 'allure-js-commons';
export interface Global extends NodeJS.Global {
allure: Allure;
}
declare global {

@@ -4,0 +8,0 @@ const allure: Allure;

6

dist/src/setup.js

@@ -6,8 +6,8 @@ "use strict";

const reporter = new allure_jasmine_1.JasmineAllureReporter({
resultsDir: resultsDir,
testMapper: testMapper,
resultsDir,
testMapper,
});
jasmine.getEnv().addReporter(reporter);
const allure = reporter.getInterface();
global['allure'] = allure;
global.allure = allure;
if (environmentInfo) {

@@ -14,0 +14,0 @@ allure.writeEnvironmentInfo(environmentInfo);

{
"name": "jest-allure2",
"version": "1.0.4",
"version": "1.1.1",
"description": "Allure Reports for jest",

@@ -11,3 +11,5 @@ "main": "dist/src/index.js",

"build": "tsc",
"test": "jest --config ./__test__/jest.config.js"
"test": "jest --config ./__test__/jest.config.js",
"lint": "xo ./src && prettier ./src --list-different",
"fix": "xo ./src --fix && prettier ./src --write"
},

@@ -22,7 +24,17 @@ "keywords": [

"devDependencies": {
"@jedmao/semantic-release-npm-github-config": "^1.0.9",
"@semantic-release/changelog": "^5.0.1",
"@semantic-release/git": "^9.0.0",
"@types/allure-js-commons": "^0.0.1",
"@types/jasmine": "^3.3.12",
"@types/jasmine": "^3.5.10",
"@types/jest": "^25.2.1",
"jest": "^25.5.4",
"typescript": "^3.8.3"
"commitizen": "^4.0.5",
"conventional-changelog-conventionalcommits": "^4.2.3",
"cz-conventional-changelog": "^3.1.1",
"eslint-plugin-prettier": "^3.1.3",
"jest": "^26.0.0",
"prettier": "^2.0.5",
"semantic-release": "^17.0.7",
"typescript": "^3.8.3",
"xo": "^0.30.0"
},

@@ -32,3 +44,23 @@ "dependencies": {

"allure-js-commons": "^2.0.0-beta.6"
},
"repository": {
"type": "git",
"url": "https://github.com/ryparker/jest-allure.git"
},
"xo": {
"globals": [
"jasmine",
"allure"
],
"semicolon": false,
"code": 120,
"prettier": true,
"rules": {
"@typescript-eslint/prefer-readonly-parameter-types": 0
}
},
"release": {
"extends": "@jedmao/semantic-release-npm-github-config",
"branch": "master"
}
}
# Jest-Allure2
[![Awesome](https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg)](https://github.com/jest-community/awesome-jest)
An up to date Jest reporter that produces Allure 2 reports.
[![NPM](https://nodei.co/npm/jest-allure2.png)](https://nodei.co/npm/jest-allure2/)
![Continuous Integration](https://github.com/ryparker/jest-allure2/workflows/Continuous%20Integration/badge.svg)
![Continuous Deployment](https://github.com/ryparker/jest-allure2/workflows/Continuous%20Deployment/badge.svg)
[![Known Vulnerabilities](https://snyk.io/test/github/ryparker/jest-allure2/badge.svg?targetFile=package.json)](https://snyk.io/test/github/ryparker/jest-allure2?targetFile=package.json)
[![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/xojs/xo)
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

@@ -8,3 +16,3 @@

Jest reporter that produces descriptive Allure reports. Forked from [jest-allure](https://github.com/zaqqaz/jest-allure), this project uses the latest allure configuration `^2.0.0-beta.6`. This enables support for new attachment types that were not supported on previous version. Allure result files are now JSON, replacing v1's XML format. A global `allure` object is available to enable full use of Allure's feature set.
Originally forked from [jest-allure](https://github.com/zaqqaz/jest-allure), this project uses the latest allure configuration `^2.0.0-beta.6`.

@@ -16,2 +24,10 @@ [Allure Framework](https://github.com/allure-framework/allure2) is a flexible lightweight multi-language test report tool that not only

**Features:**
- Most robust Allure API currently available to Jest.
- Support for new attachment types that were not supported on previous versions.
- Allure result files are now JSON, replacing the legacy XML format.
## Requirements

@@ -29,3 +45,3 @@

```shell
yarn add -D jest-allure2
yarn add --dev jest-allure2
```

@@ -131,2 +147,3 @@

```js
// jest.setup.js
var resultsDir = 'allure-results'

@@ -133,0 +150,0 @@ var environmentInfo = {"Username": "User-1331", "password": "password-1331"}

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

Sorry, the diff of this file is not supported yet

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