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.2.0 to 1.2.1

dist/index.js

6

package.json
{
"name": "jest-allure2",
"version": "1.2.0",
"version": "1.2.1",
"description": "Allure Reports for jest",
"main": "dist/src/index.js",
"types": "dist/src/index.d.ts",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"author": "Ryan Parker",

@@ -8,0 +8,0 @@ "license": "MIT",

@@ -5,4 +5,3 @@ # Jest-Allure2

[![NPM](https://nodei.co/npm/jest-allure2.png)](https://nodei.co/npm/jest-allure2/)
[![npm version](https://badge.fury.io/js/jest-allure2.svg)](https://badge.fury.io/js/jest-allure2)
![Continuous Integration](https://github.com/ryparker/jest-allure2/workflows/Continuous%20Integration/badge.svg)

@@ -17,3 +16,3 @@ ![Continuous Deployment](https://github.com/ryparker/jest-allure2/workflows/Continuous%20Deployment/badge.svg)

Originally forked from [jest-allure](https://github.com/zaqqaz/jest-allure), this project uses the latest allure configuration `^2.0.0-beta.6`.
Originally forked from [jest-allure](https://github.com/zaqqaz/jest-allure), this project uses the latest allure configuration `^2.0.0-beta.6`.

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

```js
var {registerAllure} = require('jest-allure2')
var { registerAllure } = require('jest-allure2')

@@ -97,39 +96,38 @@ registerAllure()

function sum(a: number, b: number): number {
return a + b
return a + b
}
// Tests
describe("Number functions", () => {
beforeEach('Setup', ()=>{
allure.severity(Severity.Critical)
allure.feature(Feature.Billing)
allure.story("BILL-217")
})
describe('Number functions', () => {
beforeEach('Setup', () => {
allure.severity(Severity.Critical)
allure.feature(Feature.Billing)
allure.story('BILL-217')
})
test("sum performs addition functionality", () => {
allure.description("Tests should be ran when billing functionality is changed.")
test('sum performs addition functionality', () => {
allure.description('Tests should be ran when billing functionality is changed.')
allure.step("Two integers can be added together.", () => {
allure.parameter('a', 3)
allure.parameter('b', 4)
expect(sum(3,4)).toBe(7)
})
allure.step('Two integers can be added together.', () => {
allure.parameter('a', 3)
allure.parameter('b', 4)
expect(sum(3, 4)).toBe(7)
})
allure.step("Two floats can be added together", () => {
allure.parameter('a', 3.141)
allure.parameter('b', 2.571)
expect(sum(3.141, 2.571)).toBe(5.712)
})
allure.step('Two floats can be added together', () => {
allure.parameter('a', 3.141)
allure.parameter('b', 2.571)
expect(sum(3.141, 2.571)).toBe(5.712)
})
allure.step("Two objects can be added together", () => {
const a = {"a": 1}
const b = {"b": 2}
allure.step('Two objects can be added together', () => {
const a = { a: 1 }
const b = { b: 2 }
allure.parameter('a', a)
allure.parameter('b', b)
expect(sum(a, b)).toMatchSnapshot()
})
});
});
allure.parameter('a', a)
allure.parameter('b', b)
expect(sum(a, b)).toMatchSnapshot()
})
})
})
```

@@ -150,8 +148,8 @@

var resultsDir = 'allure-results'
var environmentInfo = {"Username": "User-1331", "password": "password-1331"}
var testMapper = results => {
if (result.status == Status.SKIPPED) {
result.fullName = `(WAS SKIPPED) ${result.fullName}`
}
return result
var environmentInfo = { Username: 'User-1331', password: 'password-1331' }
var testMapper = (results) => {
if (result.status == Status.SKIPPED) {
result.fullName = `(WAS SKIPPED) ${result.fullName}`
}
return result
}

@@ -158,0 +156,0 @@

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